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)); }
public MainWindow() { InitializeComponent(); GlobalMainViewModel.win = this; GlobalMainViewModel.maintab = MainCntcont; SettingsApply.setproperties(); SettingsApply.applyres(this); //SettingsApply.applylang(this); GlobalMainViewModel.switchview(typeof(VMStart)); }
private void mainmenu_click(object sender, RoutedEventArgs e) { GlobalMainViewModel.switchview(typeof(VMStart)); }
private void cancel_button_Click(object sender, RoutedEventArgs e) { GlobalMainViewModel.switchview(typeof(VMStart)); }
private void Settings_Click(object sender, RoutedEventArgs e) { GlobalMainViewModel.switchview(typeof(VMSettings)); }
private void New_Game_Click(object sender, RoutedEventArgs e) { GlobalMainViewModel.switchview(typeof(VMMap)); }