private void Form_Load(object pSender, EventArgs pEventArgs)
        {
            try
            {
                InitializeSetting();

                //버튼이벤트 생성
                SearchButtonClicked  += new EventHandler(Form_SearchButtonClicked);
                SaveButtonClicked    += new EventHandler(Form_SaveButtonClicked);
                AddItemButtonClicked += new EventHandler(Form_AddItemButtonClicked);
                DeleteButtonClicked  += new EventHandler(Form_DeleteButtonClicked);
                PrintButtonClicked   += new EventHandler(Form_PrintButtonClicked);
                ExportButtonClicked  += new EventHandler(Form_ExportButtonClicked);
                ImportButtonClicked  += new EventHandler(Form_ImportButtonClicked);
                InitialButtonClicked += new EventHandler(Form_InitialButtonClicked);
                SettingButtonClicked += new EventHandler(Form_SettingButtonClicked);

                FormCloseButtonClicked += new EventHandler(Form_FormCloseButtonClicked);

                CoFAS_ControlManager.SetFontInControls(this.Controls, _pFONT_SETTING);

                Form_SearchButtonClicked(null, null);
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
            finally
            {
                DevExpress.Utils.AppearanceObject.DefaultFont = _pFONT_SETTING;//화면에 모든 항목 폰트 재설정
            }
        }
Exemple #2
0
        private void Form_Load(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            try
            {
                InitializeSetting();

                //버튼이벤트 생성
                SearchButtonClicked += new EventHandler(Form_SearchButtonClicked);
                //SaveButtonClicked += new EventHandler(Form_SaveButtonClicked);
                ImportButtonClicked    += new EventHandler(Form_ImportButtonClicked);
                InitialButtonClicked   += new EventHandler(Form_InitialButtonClicked);
                FormCloseButtonClicked += new EventHandler(Form_FormCloseButtonClicked);

                CoFAS_ControlManager.SetFontInControls(this.Controls, _pFONT_SETTING);
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
            finally
            {
                DevExpress.Utils.AppearanceObject.DefaultFont = _pFONT_SETTING;//화면에 모든 항목 폰트 재설정
            }
        }
Exemple #3
0
        private void Form_Load(object sender, EventArgs e)
        {
            //throw new NotImplementedException();

            try
            {
                InitializeSetting();

                //버튼이벤트 생성
                SearchButtonClicked    += new EventHandler(Form_SearchButtonClicked);
                SaveButtonClicked      += new EventHandler(Form_SaveButtonClicked);
                ExportButtonClicked    += new EventHandler(Form_ExortButtonClicked);
                InitialButtonClicked   += new EventHandler(Form_InitialButtonClicked);
                FormCloseButtonClicked += new EventHandler(Form_FormCloseButtonClicked);

                CoFAS_ControlManager.SetFontInControls(this.Controls, _pFONT_SETTING);

                //CoFAS_DevExpressManager.SetCursor(this, Cursors.WaitCursor);
                //OpenFileDialog opd = new OpenFileDialog();
                //opd.FileName = "";
                //opd.Filter = "Excel Files(.xls)|*.xls|Excel Files(.xlsx) | *.xlsx |Excel Files(*.xlsm) | *.xlsm|Excel Files파일(*.xlsx)|*.xlsx";
                //opd.Title = "엑셀 저장";

                //if (opd.ShowDialog() == DialogResult.OK)
                //{
                //    fileName = opd.SafeFileName;
                //    fileFullName = opd.FileName;
                //    filePath = fileFullName.Replace(fileName, "");

                //    _sdMAIN.LoadDocument(fileFullName);

                //    wb = _sdMAIN.Document;
                //    basewb = _sdMAIN.Document;
                //    //    worksheetName = _sdMAIN.ActiveSheet.Name;
                //    //    worksheet = wb.Worksheets[worksheetName];
                //    //}
                //}
                SheetFind_DisplayData();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
            finally
            {
                DevExpress.Utils.AppearanceObject.DefaultFont = _pFONT_SETTING;//화면에 모든 항목 폰트 재설정
            }
        }
Exemple #4
0
        private void Form_Load(object pSender, EventArgs pEventArgs)
        {
            try
            {
                InitializeSetting();

                CoFAS_ControlManager.SetFontInControls(this.Controls, _pFONT_SETTING);
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
            finally
            {
                DevExpress.Utils.AppearanceObject.DefaultFont = _pFONT_SETTING;//화면에 모든 항목 폰트 재설정
            }
        }