コード例 #1
0
 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();
 }
コード例 #2
0
        public void ResetTool()
        {
            _tool = _defaultTool;
            SSet.ClearSelection();
            lblToolRunning.Text = string.Format("{0}", _defaultTool.GetType().Name);

            this.SetToolbarRadioButton(tsbtnPan, null);
        }
コード例 #3
0
 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();
 }