Example #1
0
 /// <summary>
 /// A private mouse event for when a mouse button is released
 /// </summary>
 private void HandleMouseUp(object sender, MouseEventArgs e)
 {
     //If the left button is clicked, then it calls the controller's left mouse button let go method
     if (e.Button == MouseButtons.Left)
     {
         controller.LeftMouseLetGo();
     }
     //If the right button is clicked, then it calls the controller's right mouse button let go method
     if (e.Button == MouseButtons.Right)
     {
         controller.RightMouseLetGo();
     }
 }