예제 #1
0
        private void LoadAdditional_Click(object sender, RoutedEventArgs e)
        {
            var loadWindow = new LoadWindow();

            loadWindow.ShowDialog();
            AddSelectedDeckToList(loadWindow);
        }
예제 #2
0
 private void AddSelectedDeckToList(LoadWindow loadWindow)
 {
     if (loadWindow.SelectedDeck != null)
     {
         Decks.Add(loadWindow.SelectedDeck);
         SelectedDecksList.ItemsSource = Decks;
         SelectedDecksList.Items.Refresh();
     }
 }
예제 #3
0
        private void Load_Click(object sender, RoutedEventArgs e)
        {
            var loadWindow = new LoadWindow();

            Decks = new List <Model.Deck>();
            loadWindow.ShowDialog();

            AddSelectedDeckToList(loadWindow);
        }
예제 #4
0
        private void SelectDeckButton_Click(object sender, RoutedEventArgs e)
        {
            var loadWindow = new LoadWindow();

            loadWindow.ShowDialog();
            if (loadWindow.SelectedDeck != null)
            {
                SelectedDeck = loadWindow.SelectedDeck;
            }
        }