private void Login() { FormLogin dlg = new FormLogin(); if (dlg.ShowDialog(this) == DialogResult.OK) { _client = dlg.Client; _userName = dlg.UserName; _cards = new List <Card>(); _cards.Load(dlg.Site.CardDataFileName); _sets = new Sets(_cards); _filteredCards = _cards; _decks = new Decks(_deckPrefix, _client); _useRarityForMaxInHand = dlg.Site.UseRarityForMaxInHand; Text = Text + " - " + dlg.Site.Name; UpdateCardList(); } else { Close(); } UpdateUI(false); }
public FormChooseDeck(Decks decks) { InitializeComponent(); _decks = decks; listBoxDecks.DataSource = _decks; }