Beispiel #1
0
        private void btn_showchart_Click(object sender, EventArgs e)
        {
            List <int> _listidtr = new List <int>();

            foreach (DataGridViewRow r in dg_testresults.Rows)
            {
                if (Convert.ToBoolean(r.Cells[2].Value) == true)
                {
                    _listidtr.Add(Convert.ToInt16(r.Cells[0].Value));
                }
            }

            if (_listidtr.Count() != 0)
            {
                foreach (int i in _listidtr)
                {
                    testresult t  = _fe.testresults.First(tr => tr.idtr == i);
                    testsparam tp = _ge.testsparams.First(tt => tt.idt == t.testid);
                    if (t.mode == "auto")
                    {
                        TimeLineForm tlf = new TimeLineForm(t);
                        tlf.Text = "График скорости: " + tp.description + " от " + t.testdate;
                        tlf.Show();
                    }
                }
            }
        }
Beispiel #2
0
        private void btn_showchart_Click(object sender, EventArgs e)
        {
            List<int> _listidtr = new List<int>();

            foreach (DataGridViewRow r in dg_testresults.Rows)
            {
                if (Convert.ToBoolean(r.Cells[2].Value) == true) { _listidtr.Add(Convert.ToInt16(r.Cells[0].Value)); }
            }

            if (_listidtr.Count() != 0)
            {
                foreach (int i in _listidtr)
                {
                    testresult t = _fe.testresults.First(tr => tr.idtr == i);
                    testsparam tp = _ge.testsparams.First(tt => tt.idt == t.testid);
                    if (t.mode == "auto")
                    {
                        TimeLineForm tlf = new TimeLineForm(t);
                        tlf.Text = "График скорости: " + tp.description + " от " + t.testdate;
                        tlf.Show();
                    }
                }
            }
        }