public virtual void RemoveSelection(string group, string key) { FilterSelection fs = new FilterSelection { Group = group, Key = key }; if (Selections.Contains(fs)) { Selections.Remove(fs); } }
public virtual void AddSelection(string group, string key) { FilterSelection fs = new FilterSelection { Group = group, Key = key }; if (!Selections.Contains(fs)) { Selections.Add(fs); } }