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

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

            CheckForUpdatesResult = await updateManager.CheckForUpdatesAsync();

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