public IEventResult OnMouseUp(IMouseButtonEventArgs e) { if (e.ChangedButton == MouseButton.Left && e.ButtonState == MouseButtonState.Released) { if (SelRect.Active) { List <Selection> sels = SelRect.Select(_drawing.CurrentBlock); if (sels.Count > 0) { if (e.IsShiftKeyDown()) { (_drawing.Document as Document).Selections.Remove(sels); } else { (_drawing.Document as Document).Selections.Add(sels); } DrawSelection(sels, e.IsShiftKeyDown()); } } SelRect.Reset(); Draw(); } _snapNodesMgr.OnMouseUp(e); return(null); }
private void Draw() { _cursor.Draw(mode, _loc, _pickupBox.side, !SelRect.Active); SelRect.Draw(); }