C# Class _3PA.MainFeatures.UpdateHandler

Handles the update of this software
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CheckForUpdate() public static méthode

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

CheckForUpdateDone() public static méthode

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
Résultat void

StartCheckingForUpdate() public static méthode

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