private void Update_Executed(object sender, ExecutedRoutedEventArgs e) { var download = new DownloadDialog { Element = _newRelease, Owner = this }; var result = download.ShowDialog(); if (result.HasValue && result.Value) { if (Dialog.Ask("Screen To Gif", FindResource("Update.CloseThis").ToString(), FindResource("Update.CloseThis.Detail").ToString())) { Environment.Exit(25); } } }
private void Update_Executed(object sender, ExecutedRoutedEventArgs e) { var download = new DownloadDialog { Element = _newRelease, Owner = this }; var result = download.ShowDialog(); if (result.HasValue && result.Value) { if (Dialog.Ask("Screen To Gif", "Do you want to close this app?", "This is the old release, you downloaded the new version already.")) { Environment.Exit(25); } } }