C# Class _3PA.MainFeatures.UpdateHandler

Handles the update of this software
Show file Open project: jcaillon/3P

Public Methods

Method Description
CheckForUpdate ( ) : void

To call when the user click on an update button

CheckForUpdate ( bool alwaysGetFeedBack ) : void

Gets an object with the latest release info

CheckForUpdateDone ( ) : void

Method to call when the user starts notepad++, check if an update has been done since the last time notepad was closed

StartCheckingForUpdate ( ) : void

ASYNC - Call this method to start checking for updates every 2 hours, also check once immediatly

Private Methods

Method Description
NotifyUpdateAvailable ( ) : void
OnDownloadFileCompleted ( object sender, AsyncCompletedEventArgs asyncCompletedEventArgs ) : void

Called when the latest release download is done

WbOnOnRequestEnded ( WebServiceJson webServiceJson, bool alwaysGetFeedBack ) : void

Called when the gitub api for releases responses

Method Details

CheckForUpdate() public static method

To call when the user click on an update button
public static CheckForUpdate ( ) : void
return void

CheckForUpdate() public static method

Gets an object with the latest release info
public static CheckForUpdate ( bool alwaysGetFeedBack ) : void
alwaysGetFeedBack bool
return void

CheckForUpdateDone() public static method

Method to call when the user starts notepad++, check if an update has been done since the last time notepad was closed
public static CheckForUpdateDone ( ) : void
return void

StartCheckingForUpdate() public static method

ASYNC - Call this method to start checking for updates every 2 hours, also check once immediatly
public static StartCheckingForUpdate ( ) : void
return void