private void zedGraph_MouseClick(object sender, MouseEventArgs e) { if (/*zedGraph.Cursor == Cursors.Hand*/ inBar) { CurveItem tmpCurve; int tmpNearest; tmpCurve = null; tmpNearest = -1; myPane.FindNearestPoint(new PointF(e.X, e.Y), out tmpCurve, out tmpNearest); if (tmpCurve != null && tmpNearest != -1) { Form_Calendar calendar = new Form_Calendar(new DateTime(dateTimePicker_year.Value.Year, (int)tmpCurve[tmpNearest].X, 1)); calendar.ShowDialog(); Reload(); } } }
private void zedGraph_MouseClick(object sender, MouseEventArgs e) { if (/*zedGraph.Cursor == Cursors.Hand*/inBar) { CurveItem tmpCurve; int tmpNearest; tmpCurve = null; tmpNearest = -1; myPane.FindNearestPoint(new PointF(e.X, e.Y), out tmpCurve, out tmpNearest); if (tmpCurve != null && tmpNearest != -1) { Form_Calendar calendar = new Form_Calendar(new DateTime(dateTimePicker_year.Value.Year, (int)tmpCurve[tmpNearest].X, 1)); calendar.ShowDialog(); Reload(); } } }