Пример #1
0
        private async void RootWindowActivated(object sender, ActivationEventArgs e)
        {
            if (this.toastCts != null)
                this.toastCts.Cancel();

            // Always check on root window activated
            await this.CheckForUpdatesAsync();
        }
 private void OnRootWindowActivated(ActivationEventArgs e)
 {
     this.RootWindowActivated?.Invoke(this, e);
 }
 private void OnRootWindowActivated(ActivationEventArgs e)
 {
     var handler = this.RootWindowActivated;
     if (handler != null)
         handler(this, e);
 }
Пример #4
0
 private void OnRootWindowActivated(object sender, ActivationEventArgs e)
 {
     this.RootWindowActivated?.Invoke(this, e);
 }
Пример #5
0
        private async void RootWindowActivated(object sender, ActivationEventArgs e)
        {
            if (this.toastCts != null)
                this.toastCts.Cancel();

            // If the user clicked 'remind me later', check on root window activated
            if (this.remindLaterActive)
                await this.CheckForUpdatesAsync();
        }
Пример #6
0
        private void RootViewModelActivated(object sender, ActivationEventArgs e)
        {
            // If it's minimize to tray, not close to tray, then we'll have set the shutdown mode to OnExplicitShutdown just before closing
            // In this case, re-set Shutdownmode
            this.SetShutdownMode();

            this.viewModel.MainWindowVisible = true;
            if (this.ShowOnlyOnClose)
                this.viewModel.Visible = false;
        }
Пример #7
0
        private async void RootWindowActivated(object sender, ActivationEventArgs e)
        {
            if (this.toastCts != null)
                this.toastCts.Cancel();

            if (this.UpdateCheckDue())
                await this.CheckForUpdatesAsync();
        }