Exemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button button = (Button)sender;

            AppID.Remove((int)button.Tag);
            DataHandle.SaveIds(AppID.ToList());
        }
Exemplo n.º 2
0
        private void SendButton_Click(object sender, RoutedEventArgs e)
        {
            var isNumeric = int.TryParse(GameIdInput.Text, out int n);

            if (isNumeric)
            {
                AppID.Add(n);
            }
            GameIdInput.Clear();
            DataHandle.SaveIds(AppID.ToList());
        }
Exemplo n.º 3
0
 private void News_Click(object sender, RoutedEventArgs e)
 {
     NewsWindow.Visibility     = Visibility.Visible;
     GameEditWindow.Visibility = Visibility.Hidden;
     AllItems.ItemsSource      = Items = new ObservableCollection <newsitem>(SteamLoadData.GetNewsByIDs(AppID.ToList()));
 }