Skip to content

Commit

Permalink
#72 Updated the win forms sample to reflect the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
robinwassen committed Feb 18, 2016
1 parent c19a83c commit 440278e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Samples/WinFormsSampleApp/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private void CheckForUpdates(IUpdateSource source)
{
// Get a local pointer to the UpdateManager instance
UpdateManager updManager = UpdateManager.Instance;
updManager.UpdateSource = source;

// Only check for updates if we haven't done so already
if (updManager.State != UpdateManager.UpdateProcessState.NotChecked)
Expand All @@ -94,7 +95,7 @@ private void CheckForUpdates(IUpdateSource source)
// Check for updates - returns true if relevant updates are found (after processing all the tasks and
// conditions)
// Throws exceptions in case of bad arguments or unexpected results
updManager.CheckForUpdates(source);
updManager.CheckForUpdates();
}
catch (Exception ex)
{
Expand Down

0 comments on commit 440278e

Please sign in to comment.