예제 #1
0
 private void Cancel_Test_Load(object sender, EventArgs e)
 {
     Myadapter   = new Dt_MeterInfoTableAdapter();
     Myadapter_r = new DT_ResultTableAdapter();
     foreach (string key in CommonFunction.dic_cancel.Keys)
     {
         int index = DGV_CANCEL.Rows.Add();
         DGV_CANCEL.Rows[index].Cells[0].Value = key;
         DGV_CANCEL.Rows[index].Cells[1].Value = CommonFunction.dic_cancel[key];
         if (CommonFunction.dic_cancel[key].Equals("合格"))
         {
             DGV_CANCEL.Rows[index].Cells[1].Style.ForeColor = Color.Green;
         }
         else
         {
             DGV_CANCEL.Rows[index].Cells[1].Style.ForeColor = Color.Red;
         }
     }
     DGV_CANCEL.ClearSelection();
 }
예제 #2
0
 private void Cancel_Test_MouseDown(object sender, MouseEventArgs e)
 {
     DGV_CANCEL.ClearSelection();
 }