Beispiel #1
0
        private void goToClosestLogMessageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LogViewerControl lvc = GetParentControl();

            if (lvc != null)
            {
                lvc.SelectNodeByDate(frameTimes[trackBarSeek.Value].CreationTime);
            }
        }
Beispiel #2
0
        private void zedGraphControl_Click(object sender, EventArgs e)
        {
            CurveItem nearestCurve = null;
            int       nearestIndex = 0;
            Point     screenPoint  = zedGraphControl.PointToClient(Cursor.Position);

            zedGraphControl.GraphPane.FindNearestPoint(
                new PointF(screenPoint.X, screenPoint.Y),
                out nearestCurve, out nearestIndex);
            if (nearestCurve != null && nearestIndex >= 0)
            {
                DateTime         time = XDate.XLDateToDateTime(nearestCurve[nearestIndex].X);
                LogViewerControl lvc  = GetParentControl();
                if (lvc != null)
                {
                    lvc.SelectNodeByDate(time);
                }
            }
        }