private void PVChart_MouseEnter(object sender, EventArgs e) { if (!PVChart.Focused) { PVChart.Focus(); } }
private void PVChart_DoubleClick(object sender, EventArgs e) { ChartArea currentArea = FindAreaUnderCursor(PVChart.PointToClient(Control.MousePosition)); if (currentArea == null) { return; } OnAreaDoubleClick?.Invoke(currentArea.Name); }