示例#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
                public void SetData(TestStepBase Step, ResultDef LimitDef)
                {
                    m_ResultDef = LimitDef;
                    txtLimit.Items.Clear();
                    ICollection LimitNames = m_ResultDef.GetLimitNames();

                    foreach (string Name in LimitNames)
                    {
                        txtLimit.Items.Add(Name);
                    }
                    if (Step != null)       //bei neuen Steps wird null übergeben!
                    {
                        txtLimit.Text    = Step.GetLimitName();
                        txtName.Text     = Step.GetName();
                        btIgnore.Checked = false;
                        txtFailCode.Text = Step.GetFailCode();
                    }
                    ;
                }
示例#3
0
 protected virtual void InitCycle()
 {
     try {
         //aktuellen Typ ermitteln
         m_State.m_ActiveType = m_Interface.GetModuleState().GetActiveType();
         //Typparameter laden und validieren
         m_TypeParams.LoadParams(m_State.m_ActiveType);
         m_Counter.LoadCounter(m_State.m_ActiveType);
         ResultDef ResultDef = m_TypeParams.GetParams().m_ResultDef;
         if (!ResultDef.ValidateResultDef())
         {
             //prüfen ob Limits und Teststep richtig definiert sind??
         }
         ;
         //Ergebnisvariablen initialisieren
         WTFileCollection.GetWTFile(0).SetResultDef(ResultDef);
         WTFileCollection.GetWTFile(0).SetTypeName(m_State.m_ActiveType);
     }
     catch (SystemException e)   {
         throw(e);
     }
     finally {     }
 }
示例#4
0
 public ResultDef(ResultDef CopyThis)
 {
     m_Results = new ResultCollection(CopyThis.m_Results);
     m_Limits  = new LimitCollection(CopyThis.m_Limits);
 }
示例#5
0
 public void SetResultDef(ResultDef ResultDefinition)
 {
     m_ResultDef = ResultDefinition;
 }
示例#6
0
 public Params()
 {
     m_ResultDef = new ResultDef();
 }
示例#7
0
 public void SetResultDef(ResultDef TestSteps)
 {
     m_ResultDef = TestSteps;
     UpdateDisplay();
 }