void CreateStatic(Label lpStatic, int ParaIndex, string lpStr) { string lpCaption; if (lpStr == null) { lpCaption = CScenario.GetParaName((int)cmd.Keys[ParaIndex], cmd.id, ParaIndex); } else { lpCaption = lpStr; } Create_Static(lpStatic, lpCaption); }
void CreateCheckBox(int Index, int ParaIndex, string lpStr) { //m_CheckBox[Index].SetDefValue(CScenario.GetStepPara_Int(m_StepIndex,ParaIndex)); //m_CheckBox[Index].SetDataInfo(m_Scenario,m_StepIndex,ParaIndex); bool Checked = (ushort)cmd.Values[ParaIndex] == 1 ? true : false; m_CheckBox[Index].InitData(cmd, ParaIndex, Checked); string lpCaption; if (lpStr == null) { lpCaption = CScenario.GetParaName((int)cmd.Keys[ParaIndex]); } else { lpCaption = lpStr; } Create_CheckBox(m_CheckBox[Index], lpCaption, 0); }