示例#1
0
 public void SetStatus(ResultDef Results)
 {
     dataGridView1.Rows.Clear();
     if (Results == null)
     {
     }
     else
     {
         ICollection            Names = Results.GetTestStepNames();
         ResultDef.TestStepBase Step;
         ResultDef.LimitDefBase Limit;
         foreach (string Name in Names)
         {
             Results.GetResultValue(Name, out Step);
             Results.GetLimitValue(Step.GetLimitName(), out Limit);
             DataGridViewRow ResultRow = new DataGridViewRow();
             ResultRow.CreateCells(dataGridView1,
                                   new string[] { Name,
                                                  Step.GetResult().ToString(),
                                                  Step.GetFailCode(),
                                                  Limit.GetValueString(),
                                                  Step.GetValueString(),
                                                  Step.GetTestTime().ToString("HH:mm:ss.f") });
             dataGridView1.Rows.Add(ResultRow);
         }
     }
 }
示例#2
0
 private void TestGrid_SelectionChanged(object sender, EventArgs e)
 {
     DisableEditors();
     LimitGrid.ClearSelection();
     if (TestGrid.SelectedRows.Count > 0)
     {
         string Name = (string)TestGrid.SelectedRows[0].Cells[TestStep.Index].Value;
         ResultDef.TestStepBase Step = null;
         m_ResultDef.GetResultValue(Name, out Step);
         ActivateStepEditor(Step);
     }
     ;
 }