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