Ejemplo n.º 1
0
        private void btnAnalog_Click(object sender, EventArgs e)
        {
            DateTime ds = DateTime.Parse(txtDate3.Text);
            DateTime de = DateTime.Parse(txtDate4.Text);

            EpaAnalogData data = new EpaAnalogData(ds, de, epa, Int32.Parse(textBox1.Text));
            data.Status = statusLabel;
            data.processSignals();
            data.readTables();
            string fn = String.Format("OUT_An_{0}.html", DateTime.Now.ToString("dd_MM_yyyy_HH_mm_ss"));
            Form2 frm = new Form2();
            data.readData(fn, frm.graph.GraphPane);
            frm.graph.GraphPane.XAxis.ScaleFormatEvent += XAxis_ScaleFormatEvent;
            frm.graph.Invalidate();

            frm.Show();

            try {
                Process.Start(fn);
            }
            catch { }
        }
Ejemplo n.º 2
0
        private void btnAnalog_Click(object sender, EventArgs e)
        {
            DateTime ds = DateTime.Parse(txtDate3.Text);
            DateTime de = DateTime.Parse(txtDate4.Text);

            EpaAnalogData data = new EpaAnalogData(ds, de, epa, Int32.Parse(textBox1.Text));

            data.Status = statusLabel;
            data.processSignals();
            data.readTables();
            string fn  = String.Format("OUT_An_{0}.html", DateTime.Now.ToString("dd_MM_yyyy_HH_mm_ss"));
            Form2  frm = new Form2();

            data.readData(fn, frm.graph.GraphPane);
            frm.graph.GraphPane.XAxis.ScaleFormatEvent += XAxis_ScaleFormatEvent;
            frm.graph.Invalidate();

            frm.Show();

            try {
                Process.Start(fn);
            }
            catch { }
        }