public override void MouseClickHandler(object sender, MouseEventArgs e) { if (Viewer.Current.ShiftDown) { if (_hover == null) { } else { SSet.AddSelection(_hover); } } else { if (_hover == null) { SSet.ClearSelection(); } else { SSet.Select(_hover); } } Viewer.Current.Canvas.Invalidate(); }
public void ResetTool() { _tool = _defaultTool; SSet.ClearSelection(); lblToolRunning.Text = string.Format("{0}", _defaultTool.GetType().Name); this.SetToolbarRadioButton(tsbtnPan, null); }
private void removeEntityToolStripMenuItem_Click(object sender, EventArgs e) { PyCmd.sset.ForEach(x => { if (x is SpotEntity) { _display.RemoveSpot(x as SpotEntity); } }); SSet.ClearSelection(); ValueBuffer.UpdateValues(); Canvas.Invalidate(); }