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();
            }
        }
Exemplo n.º 3
0
        public static bool Show(string message)
        {
            var wnd = new ChoiceWindow
            {
                MessageTextBlock = { Text = message }
            };

            wnd.ShowDialog();

            return(wnd.Accepted);
        }