private void HandleGameSelectedChanged() { ButtonUninstallGame.IsEnabled = SelectedGame != null; StackPanelSetButtons.IsEnabled = SelectedGame != null; foreach (var gi in stackPanel1.Children.OfType <GameListItem>()) { gi.IsSelected = false; } if (SelectedGame == null) { return; } SetList.Set(SelectedGame); var gameItem = stackPanel1.Children.OfType <GameListItem>().FirstOrDefault(x => x.Game.Id == SelectedGame.Id); if (gameItem != null) { gameItem.IsSelected = true; } }
void ButtonInstallSet_Click(object sender, RoutedEventArgs e) { SetList.InstallSets(); }
void ButtonUninstallSet_Click(object sender, RoutedEventArgs e) { SetList.DeletedSelected(); }
void ButtonAddAutoUpdateSet_Click(object sender, RoutedEventArgs e) { SetList.AddAutoUpdatedSets(); }
void ButtonPatchSet_Click(object sender, RoutedEventArgs e) { SetList.PatchSelected(); }