private void LoadAdditional_Click(object sender, RoutedEventArgs e) { var loadWindow = new LoadWindow(); loadWindow.ShowDialog(); AddSelectedDeckToList(loadWindow); }
private void AddSelectedDeckToList(LoadWindow loadWindow) { if (loadWindow.SelectedDeck != null) { Decks.Add(loadWindow.SelectedDeck); SelectedDecksList.ItemsSource = Decks; SelectedDecksList.Items.Refresh(); } }
private void Load_Click(object sender, RoutedEventArgs e) { var loadWindow = new LoadWindow(); Decks = new List <Model.Deck>(); loadWindow.ShowDialog(); AddSelectedDeckToList(loadWindow); }
private void SelectDeckButton_Click(object sender, RoutedEventArgs e) { var loadWindow = new LoadWindow(); loadWindow.ShowDialog(); if (loadWindow.SelectedDeck != null) { SelectedDeck = loadWindow.SelectedDeck; } }