示例#1
0
 private void CardFilter_FormClosed(object sender, FormClosedEventArgs e)
 {
     _cardFilter    = null;
     _filteredCards = _cards;
     SetFilterButtonText();
     UpdateCardList();
 }
示例#2
0
 private void buttonFilter_Click(object sender, EventArgs e)
 {
     if (_cardFilter == null)
     {
         _cardFilter                = new FormCardFilter(_cards, _sets);
         _cardFilter.FormClosed    += CardFilter_FormClosed;
         _cardFilter.FilterChanged += CardFilter_FilterChanged;
         SetFilterButtonText();
         _cardFilter.Show(this);
     }
     else
     {
         _cardFilter.Close();
     }
 }