protected override void InitPaint() { base.InitPaint(); try { //콤보박스 셋팅 _flexM.SetDataMap("CD_ACCT", MA.GetCode("CZ_ME_C008"), "CODE", "NAME"); //상세검색창 foreach (Form openForm in Application.OpenForms) { if (openForm.Name == "P_CZ_ME_SALES_SUB") // 열린 폼의 이름 검사 { openForm.Activate(); return; } } P_CZ_ME_SALES_SUB sub = new P_CZ_ME_SALES_SUB(); //WinForm 생성 sub.TextSendEvent += new P_CZ_ME_SALES_SUB.Form2_EventHandler(frm2_getTextEvent); sub.Show(); } catch (Exception ex) { this.MsgEnd(ex); } }
private void btn상세검색_Click_1(object sender, EventArgs e) { try { foreach (Form openForm in Application.OpenForms) { if (openForm.Name == "P_CZ_ME_SALES_SUB") // 열린 폼의 이름 검사 { openForm.Activate(); return; } } P_CZ_ME_SALES_SUB sub = new P_CZ_ME_SALES_SUB(); //WinForm 생성 sub.TextSendEvent += new P_CZ_ME_SALES_SUB.Form2_EventHandler(frm2_getTextEvent); sub.Show(); } catch (Exception ex) { this.MsgEnd(ex); } }