void CCreateOURANOSNormal::InitClass(const CStringArray& option) { GetParamClassInfo().m_className.LoadString( IDS_SOURCENAME_CREATE_OURANOS_NORMAL ); CToolsBase::InitClass(option); ASSERT( GetParameters().GetSize() < I_NB_ATTRIBUTE); CStringArrayEx str; str.LoadString( IDS_PROPERTIES_CREATE_OURANOS_NORMAL); ASSERT( str.GetSize() == NB_ATTRIBUTE); // CString filter1 = "*.loc|*.loc||"; CString filter2 = GetString( IDS_CMN_FILTER_NORMALS); GetParameters().Add( CParamDef(CParamDef::PATH, ATTRIBUTE_NAME[0], str[0], "" ) ); GetParameters().Add( CParamDef(CParamDef::FILEPATH, ATTRIBUTE_NAME[1], str[1], filter2 ) ); CParamDef p(CParamDef::COMBO, ATTRIBUTE_NAME[2], str[2], ""); p.m_subType = CParamDef::BY_NUMBER; for(int i=0; i<12; i++) { CString tmp; tmp.Format("%d-%d", 1961+10*i, 1990+10*i); p.m_listValue.Add(tmp); } GetParameters().Add(p); }
void CUSHourly::InitClass(const CStringArray& option) { GetParamClassInfo().m_className.LoadString( IDS_SOURCENAME_US_HOURLY ); CUIWeather::InitClass(option); ASSERT( GetParameters().GetSize() < I_NB_ATTRIBUTE); CStringArrayEx strList; strList.LoadString( IDS_PROPERTIES_ENVCAN_HOURLY); ASSERT( strList.GetSize() >= NB_ATTRIBUTE); GetParameters().Add( CParamDef(CParamDef::COMBO, CParamDef::BY_NUMBER, ATTRIBUTE_NAME[0], strList[0], CGlobal::GetMonths(), "0" )); GetParameters().Add( CParamDef(CParamDef::COMBO, CParamDef::BY_NUMBER, ATTRIBUTE_NAME[1], strList[1], CGlobal::GetMonths(), "11" )); GetParameters().Add( CParamDef(CParamDef::EDIT_BROWSE, ATTRIBUTE_NAME[2], strList[2]) ); GetParameters().Add( CParamDef(CParamDef::COORD_RECT, ATTRIBUTE_NAME[3], strList[3]) ); // GetParameters().Add( CParamDef(CParamDef::COMBO, CParamDef::BY_NUMBER, ATTRIBUTE_NAME[4], array[4], forceList, "4") ); // GetParameters().Add( CParamDef(CParamDef::BOOL, ATTRIBUTE_NAME[5], array[5], "0") ); // GetParameters().Add( CParamDef(CParamDef::BOOL, ATTRIBUTE_NAME[6], array[6], "1") ); }