private void EhGraphPanel_MouseDown(object sender, MouseButtonEventArgs e) { var guiController = Controller; Keyboard.Focus(_guiCanvas); var pos = GetMousePosition(e); _mouseState?.OnMouseDown(pos, e); if (null != guiController) { guiController.EhView_GraphPanelMouseDown(pos, GuiHelper.ToAltaxo(e, _d3dCanvas), GuiHelper.ToAltaxo(Keyboard.Modifiers)); if (e.ClickCount >= 2 && e.LeftButton == MouseButtonState.Pressed) { _mouseState.OnDoubleClick(pos, e); } else if (e.ClickCount == 1 && e.LeftButton == MouseButtonState.Pressed) { _mouseState.OnClick(pos, e); } } }
/// <summary> /// Handles the mouse down event onto the graph in the controller class. /// </summary> /// <param name="e">MouseEventArgs.</param> public virtual void EhView_GraphPanelMouseDown(System.Windows.Forms.MouseEventArgs e) { _mouseState.OnMouseDown(e); }