public IMouseHandler MouseDown(MouseDownNotification arg) { if (Left != null) { Left = Left.MouseDown(arg); } if (Right != null) { Right = Right.MouseDown(arg); } return(ThisIfLeftAndRightIsNotNull()); }
public void MouseDown(object sender, MouseEventArgs e) { mouseDownPos = new Point(e.X, e.Y); Shape shape = GetShapeFromMouse(e); if (shape is IMouseHandler) { IMouseHandler mouseShape = (IMouseHandler)shape; mouseShape.MouseDown(shape, e); } }
private void PictureBox1_MouseDown(object sender, MouseEventArgs e) { _crntMH.MouseDown(e.Location); }