Ejemplo n.º 1
0
        public void AddItem()
        {
            IgnoreCategory cat = catCombo.SelectedItem as IgnoreCategory;

            if (cat != null && itemEdit.Text.Trim().Length > 0)
            {
                cat.AddItem(itemEdit.Text.Trim());
            }
        }
Ejemplo n.º 2
0
        public void RemoveItem()
        {
            IgnoreCategory cat = catCombo.SelectedItem as IgnoreCategory;

            if (cat != null && itemList.SelectedItems.Count > 0)
            {
                cat.RemoveItems((from string a in itemList.SelectedItems select a).ToList());
            }
        }