Пример #1
0
        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;
            }
        }
Пример #2
0
 void ButtonInstallSet_Click(object sender, RoutedEventArgs e)
 {
     SetList.InstallSets();
 }
Пример #3
0
 void ButtonUninstallSet_Click(object sender, RoutedEventArgs e)
 {
     SetList.DeletedSelected();
 }
Пример #4
0
 void ButtonAddAutoUpdateSet_Click(object sender, RoutedEventArgs e)
 {
     SetList.AddAutoUpdatedSets();
 }
Пример #5
0
 void ButtonPatchSet_Click(object sender, RoutedEventArgs e)
 {
     SetList.PatchSelected();
 }