/// <summary> /// Removes an item from the selection. /// </summary> /// <param name="item">Item to be removed from the selection.</param> /// <param name="bNotify">True to notify of this selection change. False otherwise.</param> public void RemoveFromSelection(ISelectable item, bool bNotify) { if (ContainsInSelection(item)) { CurrentSelection.Remove(item); } item.IsSelected = false; if (bNotify) { Notify(); } }
internal void RemoveFromSelection(ISelectable item) { if (item is IGroupable) { List <IGroupable> groupItems = GetGroupMembers(item as IGroupable); foreach (ISelectable groupItem in groupItems) { groupItem.IsSelected = false; CurrentSelection.Remove(groupItem); } } else { item.IsSelected = false; CurrentSelection.Remove(item); } }
public void Unselect(File track) { CurrentSelection.Remove(track); }