Esempio n. 1
0
        private void RaiseUpdateCheckFinishedEvent(bool updateAvailable)
        {
            var args = new ConnectionsUpdateCheckFinishedEventArgs {
                UpdateAvailable = updateAvailable
            };

            UpdateCheckFinished?.Invoke(this, args);
        }
Esempio n. 2
0
        public async void CheckForUpdates(bool initiatedByUser)
        {
            UpdateCheckStarted?.Invoke(this, initiatedByUser);

            CheckForUpdatesResult = await updateManager.CheckForUpdatesAsync();

            UpdateCheckFinished?.Invoke(this, CheckForUpdatesResult, initiatedByUser);
        }
Esempio n. 3
0
 private void OnUpdateCheckFinished(object sender, ConnectionsUpdateCheckFinishedEventArgs eventArgs)
 {
     _updateTimer.Start();
     UpdateCheckFinished?.Invoke(sender, eventArgs);
 }
Esempio n. 4
0
 protected virtual void OnUpdateCheckFinished()
 {
     UpdateCheckFinished?.Invoke(this, new UpdateCheckFinishedEventArgs(InstalledVersion, AvailableVersion));
 }