public void GetResultValue(string Name, out TestStepDouble Result) { TestStepDouble Step = null; if (TestStepExists(Name)) { if (!m_Results[Name].GetType().Equals(typeof(TestStepDouble))) { Step = (TestStepDouble)m_Results[Name]; } } ; Result = Step; }
public TestStepBase GetData() { //?? validieren der Daten TestStepBase Step = null; LimitDefBase Limit; m_ResultDef.GetLimitValue(txtLimit.Text, out Limit); if (Limit.GetType().Equals(typeof(LimitDefBool))) { Step = new TestStepBool(txtName.Text, txtLimit.Text, btIgnore.Checked); } else if (Limit.GetType().Equals(typeof(LimitDefDouble))) { Step = new TestStepDouble(txtName.Text, txtLimit.Text, btIgnore.Checked); } Step.SetFailCode(txtFailCode.Text); //??Fehlerbehandlung wenn Limit nicht definiert return(Step); }