Example #1
0
        private void save_changes_button_Click(object sender, RoutedEventArgs e)
        {
            TextBlock lang = (TextBlock)language.SelectedItem;

            SettingsApply.psettings.setsettings(resolution.Text, lang.Name, (bool)fullscreen.IsChecked);
            SettingsApply.setproperties();
            SettingsApply.applyres(GlobalMainViewModel.win);
            GlobalMainViewModel.switchview(typeof(VMSettings));
        }
Example #2
0
 public MainWindow()
 {
     InitializeComponent();
     GlobalMainViewModel.win     = this;
     GlobalMainViewModel.maintab = MainCntcont;
     SettingsApply.setproperties();
     SettingsApply.applyres(this);
     //SettingsApply.applylang(this);
     GlobalMainViewModel.switchview(typeof(VMStart));
 }
Example #3
0
 private void mainmenu_click(object sender, RoutedEventArgs e)
 {
     GlobalMainViewModel.switchview(typeof(VMStart));
 }
Example #4
0
 private void cancel_button_Click(object sender, RoutedEventArgs e)
 {
     GlobalMainViewModel.switchview(typeof(VMStart));
 }
Example #5
0
 private void Settings_Click(object sender, RoutedEventArgs e)
 {
     GlobalMainViewModel.switchview(typeof(VMSettings));
 }
Example #6
0
 private void New_Game_Click(object sender, RoutedEventArgs e)
 {
     GlobalMainViewModel.switchview(typeof(VMMap));
 }