Esempio n. 1
0
 private void UpdateManager_UpdateFound(object sender, UpdateFoundEventArgs e)
 {
     this.Dispatcher.Invoke(() =>
     {
         IsIdle = false;
     });
 }
Esempio n. 2
0
        private void HandleUpdateFound(object sender, UpdateFoundEventArgs args)
        {
            var dialogResult = MessageBox.Show(
                string.Format(_resourceManager.GetString("UpdateFoundMessageFormat"), args.Version),
                Text,
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Information);

            if (dialogResult == DialogResult.Yes)
            {
                var processStartInfo = new ProcessStartInfo
                {
                    FileName        = args.Uri,
                    UseShellExecute = true,
                    ErrorDialog     = true,
                };
                Process.Start(processStartInfo);
            }
        }
Esempio n. 3
0
 protected virtual Task?OnUpdateFound(UpdateFoundEventArgs args) => this.UpdateFound?.Invoke(args);
 void engine_UpdateFound(object sender, UpdateFoundEventArgs e)
 {
     AppendLog(e.FoundTitle);
 }