示例#1
0
        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");
        }
示例#2
0
        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");
        }
示例#3
0
        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");
        }