public void removeItem(ListShowsButton b)
 {
     filtersPanel.Controls.Remove(b);
     Window.controller.Shows.ForEach(delegate(Model.Show s)
     {
         s.Categories.Remove(b.Title);
     });
 }
 private void addButtonTextBox_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         ListShowsButton b = new ListShowsButton(((TextBox)sender).Text);
         buttons.Add(b);
         filtersPanel.Controls.Add(b);
         b.Dock = DockStyle.Bottom;
         ((TextBox)sender).Text = "";
         Invalidate();
         OnRaiseButtonAddedEvent(new ButtonAddedEventArgs(b));
         e.Handled = true;
     }
 }
 public ButtonAddedEventArgs(ListShowsButton b)
 {
     _button = b;
 }