Example #1
0
 private void OnMouseUp(object sender, MouseEventArgs e)
 {
     if (diabloWindow != null)
     {
         Point point = ResolvePoint(e.Location);
         if (e.Button == MouseButtons.Left)
         {
             diabloWindow.LeftMouseUp(point.X, point.Y);
         }
         else if (e.Button == MouseButtons.Right)
         {
             diabloWindow.RightMouseUp(point.X, point.Y);
         }
         else if (e.Button == MouseButtons.Middle)
         {
             diabloWindow.MiddleMouseUp(point.X, point.Y);
         }
     }
     this.Focus();
 }