/// <summary> /// 에러리스트 클래스 생성자 입니다. /// </summary> /// <param name="_iMaxErrCnt">에러카운트의 갯수 입니다.</param> /// public bool Init(EN_LAN_SEL _eLanSel, string _sParaFolderPath, Enum _eErr, bool _bUseErrPic) { //LoadSavePara(false); m_eLangSel = _eLanSel; m_sParaFolderPath = _sParaFolderPath; m_bUseErrPic = _bUseErrPic; FrmErr = new FormErr(); Type type = _eErr.GetType(); Array arrayTemp = Enum.GetValues(type); m_iMaxErr = arrayTemp.Length - 1; if (m_iMaxErr < 0) { m_iMaxErr = 0; } m_aErr = new TErr[m_iMaxErr]; //m_iMaxErr = _iMaxErrCnt; for (int i = 0; i < m_iMaxErr; i++) { m_aErr[i].Para.sEnum = arrayTemp.GetValue(i).ToString(); //m_aErr[i].Para = new TErrConfig(); //m_aErr[i].Para.sEnum = i.ToString(); m_aErr[i].Para.sName = i.ToString(); m_aErr[i].Para.sAction = i.ToString(); m_aErr[i].Para.sImgPath = i.ToString(); m_aErr[i].Para.dRectLeft = 0; m_aErr[i].Para.dRectTop = 0; m_aErr[i].Para.dRectHeight = 0; m_aErr[i].Para.dRectWidth = 0; m_aErr[i].Para.iErrorLevel = 0; m_aErr[i].Stat.sSubMsg = ""; m_aErr[i].Stat.bOn = false; m_aErr[i].Stat.bOnUp = false; m_aErr[i].Stat.bOnDn = false; m_aErr[i].Stat.bPreOn = false; } LoadSave(true); return(true); }
/// <summary> /// 에러리스트 클래스 생성자 입니다. /// </summary> /// <param name="_iMaxErrCnt">에러카운트의 갯수 입니다.</param> /// public bool Init(EN_LAN_SEL _eLanSel, string _sParaFolderPath, int _iMaxErrCnt, bool _bUseErrPic) { //LoadSavePara(false); m_eLangSel = _eLanSel; m_sParaFolderPath = _sParaFolderPath; m_bUseErrPic = _bUseErrPic; m_FrmErr = new FormErr(); m_aErr = new TErr[_iMaxErrCnt]; m_iMaxErr = _iMaxErrCnt; for (int i = 0; i < _iMaxErrCnt; i++) { //m_aErr[i].Para = new TErrConfig(); m_aErr[i].Para.sEnum = i.ToString(); m_aErr[i].Para.sName = i.ToString(); m_aErr[i].Para.sAction = i.ToString(); m_aErr[i].Para.sImgPath = i.ToString(); m_aErr[i].Para.dRectLeft = 0; m_aErr[i].Para.dRectTop = 0; m_aErr[i].Para.dRectHeight = 0; m_aErr[i].Para.dRectWidth = 0; m_aErr[i].Para.iErrorLevel = 0; m_aErr[i].Stat.sSubMsg = ""; m_aErr[i].Stat.bOn = false; m_aErr[i].Stat.bOnUp = false; m_aErr[i].Stat.bOnDn = false; m_aErr[i].Stat.bPreOn = false; } LoadSave(true); return(true); }