Example #1
0
        private void Save_Click(object sender, RoutedEventArgs e)
        {
            ConfigViewModel cfg = (ConfigViewModel)DataContext;

            try
            {
                cfg.SaveConfig();
            } catch (Exception)
            {
                MessageBox.Show(Properties.Resources.ConfigurationSaveError);
            }
        }
Example #2
0
        private void SaveExit_Click(object sender, RoutedEventArgs e)
        {
            ConfigViewModel cfg = (ConfigViewModel)DataContext;

            try
            {
                cfg.SaveConfig();
            }
            catch (Exception)
            {
                MessageBox.Show(Properties.Resources.ConfigurationSaveError);
                return;
            }
            System.Diagnostics.Process.Start(Properties.Resources.RunGameUri);
            Application.Current.Shutdown();
        }
Example #3
0
        private void Discard_Click(object sender, RoutedEventArgs e)
        {
            ConfigViewModel cfg = (ConfigViewModel)DataContext;

            cfg.LoadConfig();
        }