public void OnDamageFilterAdded(ComboFilter filter) { flowLayoutPanel1.Controls.Add(new ComboDamageFilter()); if (filters.Count > 1) { flowLayoutPanel1.Controls.Add(addfilterbutton); } flowLayoutPanel1.Controls.Remove(filter); filters.Remove("Damage"); }
public void OnCostFilterAdded(ComboFilter filter) { flowLayoutPanel1.Controls.Add(new NumericCostFilter()); if (filters.Count > 1) { flowLayoutPanel1.Controls.Add(addfilterbutton); } flowLayoutPanel1.Controls.Remove(filter); filters.Remove("MP Cost"); }
public void OnTargetFilterAdded(ComboFilter filter) { flowLayoutPanel1.Controls.Add(new ComboTargetFilter()); if (filters.Count > 1) { flowLayoutPanel1.Controls.Add(addfilterbutton); } flowLayoutPanel1.Controls.Remove(filter); filters.Remove("Targets"); }