private void ClearArchiveButton_Click(object sender, RoutedEventArgs e) { var choice = ChoiceWindow.Show(LocaleSelector.GetLocaleString("ChoiceWindow_ArchiveEraseWarning")); if (choice) { App.ArchiveManager.EraseArchives(); } }
private void ClearStatisticsButton_Click(object sender, RoutedEventArgs e) { var choice = ChoiceWindow.Show(LocaleSelector.GetLocaleString("ChoiceWindow_StatisticsEraseWarning")); if (choice) { App.StatsManager.ClearStats(); } }
public static bool Show(string message) { var wnd = new ChoiceWindow { MessageTextBlock = { Text = message } }; wnd.ShowDialog(); return(wnd.Accepted); }