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