コード例 #1
0
 /// <summary>
 /// A private mouse event for when a mouse is clicked
 /// </summary>
 private void HandleMouseDown(object sender, MouseEventArgs e)
 {
     //If the left button is clicked, then it calls the controller's left mouse button clicked method
     if (e.Button == MouseButtons.Left)
     {
         controller.LeftMouseClicked();
     }
     //If the right button is clicked, then it calls the controller's right mouse button clicked method
     if (e.Button == MouseButtons.Right)
     {
         controller.RightMouseClicked();
     }
 }