internal void RemoveSelection(IDesignerCanvasItemInternal item) { item.IsSelected = false; _selectedItems.Remove(item); this.OnSelectionChanged(); }
/// <summary> /// 处理用户的选择事件。 /// </summary> /// <param name="item">被点击的项</param> internal void HandleMouseSelection(IDesignerCanvasItemInternal item) { if (this.MultiSelection) { if (item.IsSelected) { this.RemoveSelection(item); } else { this.AddSelection(false, item); } } else if (!item.IsSelected) { this.AddSelection(true, item); } }
internal void RemoveSelection(IDesignerCanvasItemInternal item) { item.IsSelected = false; _selectedItems.Remove(item); this.OnSelectionChanged(); }
/// <summary> /// 处理用户的选择事件。 /// </summary> /// <param name="item">被点击的项</param> internal void HandleMouseSelection(IDesignerCanvasItemInternal item) { if (this.MultiSelection) { if (item.IsSelected) { this.RemoveSelection(item); } else { this.AddSelection(false, item); } } else if (!item.IsSelected) { this.AddSelection(true, item); } }