protected internal override void OnMouseIsDown(BasicMouseEventArgs e) { int indX1 = GetSeparatorInd(xpos, e.X); int indY1 = GetSeparatorInd(ypos, e.Y); if (indX1 >= 0) { indY1 = -1; } if (indX1 >= 0 || indY1 >= 0) { dragging = true; dragX = indX1 >= 0; dragIndex = indX1 >= 0 ? indX1 : indY1; return; } int indX; int indY; BasicView v = GetComponentAt(e.X, e.Y, out indX, out indY); if (v != null) { v.OnMouseIsDown(new BasicMouseEventArgs(e, xpos[indX], ypos[indY], widths[indX], heights[indY])); mouseDownX = indX; mouseDownY = indY; } }
protected override sealed void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); mouseDown = true; view.OnMouseIsDown(new BasicMouseEventArgs(e, Width, Height, () => ModifierKeys, ViewToolTip)); }