コード例 #1
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : 언어 변환
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        private void BtnLanguage_Click(object sender, EventArgs e)
        {
            var pDocument = CDocument.GetDocument;

            // 언어 변경
            CConfig.CSystemParameter objOptionParameter = pDocument.m_objConfig.GetSystemParameter();
            //objOptionParameter.eLanguage = ( CDefine.enumLanguage )( ( ( int )objOptionParameter.eLanguage + 1 ) % ( int )CDefine.enumLanguage.LANGUAGE_FINAL );
            objOptionParameter.eLanguage = CDefine.enumLanguage.LANGUAGE_ENGLISH;
            // 버튼 로그 추가
            string strLog = string.Format("[{0}] [Language : {1} -> {2}]", "BtnLanguage_Click", pDocument.m_objConfig.GetSystemParameter().eLanguage.ToString(), objOptionParameter.eLanguage.ToString());

            pDocument.SetUpdateButtonLog(this, strLog);

            pDocument.m_objConfig.SaveSystemParameter(objOptionParameter);

            do
            {
                CMainFrame objMain = pDocument.GetMainFrame();
                if (null == objMain)
                {
                    break;
                }
                // 타이틀 변경
                CFormInterface objInterface = objMain.GetFormTitle() as CFormInterface;
                if (null == objInterface)
                {
                    break;
                }
                objInterface.SetChangeLanguage();
                // 메뉴 변경
                SetChangeLanguage();
                // View에 있는 현재 폼도 바꿔줌
                m_objView.SetChangeLanguage();
            } while(false);
        }
コード例 #2
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : 폼 초기화
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public bool InitializeForm()
        {
            bool bReturn = false;

            do
            {
                var pDocument = CDocument.GetDocument;
                m_objCurrentForm = this;
                // 대기 다이얼로그 생성
                m_objDialogWait = new CDialogWait();
                // 메인 폼 패널에 타이틀 / 몸통 / 메뉴 형식으로 붙인다.
                m_objTitle = new CFormTitle();
                m_objView  = new CFormView();
                m_objMenu  = new CFormMenu();
                CLoadingScreen.UpdateStatusTextWithStatus(CLoadingScreen.GetPrograssPoint() + 3, "CFormTitle Initialize....", TypeOfMessage.Warning);
                SetFormDockStyle(m_objTitle, this.panelTitle);
                CLoadingScreen.UpdateStatusTextWithStatus(CLoadingScreen.GetPrograssPoint() + 13, "CFormTitle Initialize Completed", TypeOfMessage.Success);
                Application.DoEvents();
                CLoadingScreen.UpdateStatusTextWithStatus(CLoadingScreen.GetPrograssPoint() + 13, "CFormView Initialize....", TypeOfMessage.Warning);
                SetFormDockStyle(m_objView, this.panelView);
                CLoadingScreen.UpdateStatusTextWithStatus(CLoadingScreen.GetPrograssPoint() + 7, "CFormView Initialize Completed", TypeOfMessage.Success);
                Application.DoEvents();
                SetFormDockStyle(m_objMenu, this.panelMenu);
                CLoadingScreen.UpdateStatusTextWithStatus(CLoadingScreen.GetPrograssPoint() + 3, "CFormMenu Initialize Completed", TypeOfMessage.Success);
                Application.DoEvents();

                CFormInterface objInterface = m_objTitle as CFormInterface;
                if (null != objInterface)
                {
                    objInterface.SetChangeLanguage();
                    objInterface = null;
                }
                objInterface = m_objMenu as CFormInterface;
                if (null != objInterface)
                {
                    objInterface.SetChangeLanguage();
                    objInterface = null;
                }

                this.Location      = new Point(0, 0);
                this.StartPosition = FormStartPosition.Manual;

                bReturn = true;
            } while(false);

            return(bReturn);
        }
コード例 #3
0
ファイル: CFormConfig.cs プロジェクト: zaros3/DeepSight
 public structureForm(CFormInterface form)
 {
     this._IForm   = form;
     this._objForm = this._IForm as Form;
 }