Exemple #1
0
        private void RestoreDefaultsButton_Click(object sender, RoutedEventArgs e)
        {
            var mbox = new MaterialMbox(Properties.Strings.RestoreDefaultsMessage, Properties.Strings.RestoreDefaultsTitle);

            mbox.ShowDialog();

            if (mbox.Result == MessageBoxResult.OK)
            {
                ViewModel.RestoreDefaults();
            }
        }
Exemple #2
0
        private void CloseAppButton_Click(object sender, RoutedEventArgs e)
        {
            var mbox = new MaterialMbox(Properties.Strings.ExitMessage, Properties.Strings.ExitTitle);

            mbox.ShowDialog();

            if (mbox.Result == MessageBoxResult.OK)
            {
                App.GetMainWindow().Close();
            }
        }