Beispiel #1
0
 /// <summary>
 /// Used to draw the shape preview
 /// </summary>
 /// <param name="point">Current mouse point</param>
 public void InvokeMouseMove(Point point)
 {
     if (this._previewCommand != null)
     {
         _previewCommand.Execute(point);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Used to draw the final shape
 /// </summary>
 /// <param name="point">Clicked point</param>
 public void InvokeClick(Point point)
 {
     if (this._drawCommand != null)
     {
         _drawCommand.Execute(point);
     }
     else
     {
         MessageBox.Show("Select a tool to draw");
     }
 }