private void ui_launcher_gameversion_combobox_SelectionChanged(object sender, SelectionChangedEventArgs e) { //get the currently selected game version enum value from the launcher tab GameVersion selectedGameVersion = (GameVersion)ui_launcher_gameversion_combobox.SelectedIndex; //tell the app to switch to this version appSettings.ChangeGameVersion(selectedGameVersion); //tell the manager we changed game versions modManager.ChangedGameVersion(); //update the UI to reflect any new changes UpdateUI(); }
private void ui_gamesetup_done_Click(object sender, RoutedEventArgs e) { GameVersion selectedGameVersion = GameVersion_Functions.Get_Versions_ParseIntValue(ui_gamesetup_gameversion_combobox.SelectedIndex); appSettings.ChangeGameVersion(selectedGameVersion); modManager.ChangedGameVersion(); if (appSettings.IsGameSetupAndValid(true) == false) { return; } appSettings.UpdateChangesToFile(); this.Hide(); mainWindow.Show(); mainWindow.Activate(); }