Example #1
0
        public void UpdateTesting(ProductDataBase product)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new Action <ProductDataBase>(UpdateTesting), product);
            }
            else
            {
                timer1.Start();
                buttonStatus.Text      = "TESTING";
                buttonStatus.BackColor = Color.Yellow;

                textBoxCT.Text = product.CT.ToString("F2");
                _startDateTime = product.StartTime;

                dataGridView1.DataSource = product.ToDataTable();
            }
        }
Example #2
0
        public void UpdateResult(ProductDataBase product)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new Action <ProductDataBase>(UpdateResult), product);
            }
            else
            {
                buttonStatus.Text      = product.Status.ToString();
                buttonStatus.BackColor = product.Status == ProductStatus.OK ? Color.Lime : Color.Red;

                timer1.Stop();
                textBoxCT.Text = product.CT.ToString("F2");

                dataGridView1.DataSource = product.ToDataTable();

                if (dataGridView1.RowCount > 0)
                {
                    DrawDataGridViewColor(dataGridView1, product);
                }
            }
        }
Example #3
0
 public virtual void DrawDataGridViewColor(DataGridView dataGridView, ProductDataBase product)
 {
 }