示例#1
0
        public virtual void RemoveSelection(string group, string key)
        {
            FilterSelection fs = new FilterSelection {
                Group = group, Key = key
            };

            if (Selections.Contains(fs))
            {
                Selections.Remove(fs);
            }
        }
示例#2
0
        public virtual void AddSelection(string group, string key)
        {
            FilterSelection fs = new FilterSelection {
                Group = group, Key = key
            };

            if (!Selections.Contains(fs))
            {
                Selections.Add(fs);
            }
        }