Exemple #1
0
        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();
                }
            }
        }
Exemple #2
0
        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();
                }
            }
        }