Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 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();
                    }
                    ;
                }
Exemplo n.º 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 {     }
 }
Exemplo n.º 4
0
 public ResultDef(ResultDef CopyThis)
 {
     m_Results = new ResultCollection(CopyThis.m_Results);
     m_Limits  = new LimitCollection(CopyThis.m_Limits);
 }
Exemplo n.º 5
0
 public void SetResultDef(ResultDef ResultDefinition)
 {
     m_ResultDef = ResultDefinition;
 }
Exemplo n.º 6
0
 public Params()
 {
     m_ResultDef = new ResultDef();
 }
Exemplo n.º 7
0
 public void SetResultDef(ResultDef TestSteps)
 {
     m_ResultDef = TestSteps;
     UpdateDisplay();
 }