Esempio n. 1
0
        void buttonDisplayRaw_Click(object sender, System.EventArgs e)
        {
            XDate startx = (XDate)zedGraphControl1.MasterPane[0].XAxis.Scale.Min;
            XDate endx   = (XDate)zedGraphControl1.MasterPane[0].XAxis.Scale.Max;

            if (((TimeSpan)(endx.DateTime.Subtract(startx.DateTime))).TotalMinutes > 20)
            {
                MessageBox.Show("Cannot display more than 20 minutes of raw data at a time. Please select a 20 minute segment or less then click Display Raw");
                return;
            }

            if ((rawForm == null) || (rawForm.IsDisposed))
            {
                rawForm = new RawDataViewForm();
            }

            rawForm.StartX      = startx;
            rawForm.EndX        = endx;
            rawForm.PathDataset = _pathDataset;

            if (rawForm.Visible == false)
            {
                rawForm.Show();
            }
        }
Esempio n. 2
0
        void buttonDisplayRaw_Click(object sender, System.EventArgs e)
        {
            XDate startx = (XDate)zedGraphControl1.MasterPane[0].XAxis.Scale.Min;
            XDate endx = (XDate)zedGraphControl1.MasterPane[0].XAxis.Scale.Max;

            if (((TimeSpan)(endx.DateTime.Subtract(startx.DateTime))).TotalMinutes > 20)
            {
                MessageBox.Show("Cannot display more than 20 minutes of raw data at a time. Please select a 20 minute segment or less then click Display Raw");
                return;
            }

            if ((rawForm == null) || (rawForm.IsDisposed))
                rawForm = new RawDataViewForm();

            rawForm.StartX = startx;
            rawForm.EndX = endx;
            rawForm.PathDataset = _pathDataset;

            if (rawForm.Visible == false)
                rawForm.Show();
        }