private void NextButton_Click(object sender, RoutedEventArgs e) { if (this.GameTypeComboBox.SelectedIndex >= 0) { GameTypeListing selectedType = (GameTypeListing)this.GameTypeComboBox.SelectedItem; this.SetGameEditorControl(selectedType.EditorControl); } }
private void GameTypeComboBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { if (this.GameTypeComboBox.SelectedIndex >= 0) { GameTypeListing selectedType = (GameTypeListing)this.GameTypeComboBox.SelectedItem; this.GameDescriptionTextBlock.Text = selectedType.Description; this.NextButton.IsEnabled = true; } }
private void ViewModel_GameTypeSelected(object sender, GameTypeListing e) { this.SetGameEditorControl(this.gameEditors[this.viewModel.SelectedGameType.Name]); }