Skip to content

Commit

Permalink
* Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Apr 16, 2018
1 parent b70bf1f commit 29ff744
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ In order to use it, you require an XML file on a remote or local server that rep

Create a new UpdateManager object like this:
```C#
UpdateManager.Classes.UpdateManager updateManager = new UpdateManager.Classes.UpdateManager(Assembly.GetExecutingAssembly().GetName().Version, "https://example.com/update.xml", "Application title", "Information", "Cancel", "Download", "No new version is currently available.");
StringVariables stringVariables = new StringVariables
{
CancelButtonText = "Cancel",
DownloadButtonText = "Download",
InformationButtonText = "Information",
NoNewVersionText = "You are running the latest version!",
TitleText = "Your application title",
UpdateNowText = "Would you like to update the application now?"
};
UpdateManager.Classes.UpdateManager updateManager = new UpdateManager.Classes.UpdateManager(Assembly.GetExecutingAssembly().GetName().Version, "https://yoururl/update.xml", stringVariables);
```

Check for updates like this:
Expand Down

0 comments on commit 29ff744

Please sign in to comment.