using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Diagnostics; namespace FPER { public partial class frmBoardGroup_BigReceiver : Form { MDIParent mdi = null; LogFileCreate LFC = new LogFileCreate(); // cyim 2016.10.31 : 대용량 수신기용 UI 변경 //PictureBox[] PicBoard; //Label[] lblBoardComm; Label[] PicBoard; Button[] Board_loop0; Button[] Board_loop1; Button[] Board_loop2; Button[] Board_loop3; // cyim 2016.10.31 : 대용량 수신기용 UI 변경 // Loop2 와 Loop3 의 경우 1~8 아이디는 Dummy 다 // LCH 2018.02.27 : 수정됨 //Button btnBoard1_loop2 = new Button(); //Button btnBoard2_loop2 = new Button(); //Button btnBoard3_loop2 = new Button(); //Button btnBoard4_loop2 = new Button(); //Button btnBoard5_loop2 = new Button(); //Button btnBoard6_loop2 = new Button(); //Button btnBoard7_loop2 = new Button(); //Button btnBoard8_loop2 = new Button(); //Button btnBoard1_loop3 = new Button(); //Button btnBoard2_loop3 = new Button(); //Button btnBoard3_loop3 = new Button(); //Button btnBoard4_loop3 = new Button(); //Button btnBoard5_loop3 = new Button(); //Button btnBoard6_loop3 = new Button(); //Button btnBoard7_loop3 = new Button(); //Button btnBoard8_loop3 = new Button(); delegate void deleFormInit(); public frmBoardGroup_BigReceiver() { InitializeComponent(); // cyim 2016.10.31 : 대용량 수신기용 UI 변경 Dummy_Init(); // cyim 2017.01.12 : IFC3300 은 통신보드 0번이 존재한다 : 단 여기에서는 UI 버튼 상태만 확인하므로 1번부터 64번만 체크해도 된다 // cyim 2016.11.03 : 통신보드(중계반)는 최대 64 for (int i = 1; i <= 64; i++) { for (int j = 0; j < 4; j++) { // cyim 2016.10.31 : 대용량 수신기용 UI 변경 : 버튼 핸들러는 일괄 등록한다 Button btn = (Button)Util.FineControl(this, string.Format("btnBoard{0}_loop{1}", i, j)); btn.Click += new EventHandler(btnBoard_loop_Click); } //TextBox textbox = (TextBox)Util.FineControl(this, string.Format("textbox{0}", i)); } } public void Form_Init() { try { if (this.InvokeRequired) { deleFormInit d = new deleFormInit(Form_Init); this.Invoke(d, new object[] { }); } else { getData(); } } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } public void Dummy_Init() { // cyim 2016.10.31 : 대용량 수신기용 UI 변경 // Loop2 와 Loop3 의 경우 1~8 아이디는 Dummy 다 // LCH 2018.02.27 : 수정됨 //btnBoard1_loop2.Name = "btnBoard1_loop2"; //btnBoard2_loop2.Name = "btnBoard2_loop2"; //btnBoard3_loop2.Name = "btnBoard3_loop2"; //btnBoard4_loop2.Name = "btnBoard4_loop2"; //btnBoard5_loop2.Name = "btnBoard5_loop2"; //btnBoard6_loop2.Name = "btnBoard6_loop2"; //btnBoard7_loop2.Name = "btnBoard7_loop2"; //btnBoard8_loop2.Name = "btnBoard8_loop2"; //btnBoard1_loop3.Name = "btnBoard1_loop3"; //btnBoard2_loop3.Name = "btnBoard2_loop3"; //btnBoard3_loop3.Name = "btnBoard3_loop3"; //btnBoard4_loop3.Name = "btnBoard4_loop3"; //btnBoard5_loop3.Name = "btnBoard5_loop3"; //btnBoard6_loop3.Name = "btnBoard6_loop3"; //btnBoard7_loop3.Name = "btnBoard7_loop3"; //btnBoard8_loop3.Name = "btnBoard8_loop3"; //this.Controls.Add(btnBoard1_loop2); //this.Controls.Add(btnBoard2_loop2); //this.Controls.Add(btnBoard3_loop2); //this.Controls.Add(btnBoard4_loop2); //this.Controls.Add(btnBoard5_loop2); //this.Controls.Add(btnBoard6_loop2); //this.Controls.Add(btnBoard7_loop2); //this.Controls.Add(btnBoard8_loop2); //this.Controls.Add(btnBoard1_loop3); //this.Controls.Add(btnBoard2_loop3); //this.Controls.Add(btnBoard3_loop3); //this.Controls.Add(btnBoard4_loop3); //this.Controls.Add(btnBoard5_loop3); //this.Controls.Add(btnBoard6_loop3); //this.Controls.Add(btnBoard7_loop3); //this.Controls.Add(btnBoard8_loop3); } private void frmBoardGroup_Load_1(object sender, EventArgs e) { // cyim 2013.8.1 : 더블버퍼링 적용 SetStyle(ControlStyles.UserPaint, true); //this.UpdateStyles(); SetStyle(ControlStyles.AllPaintingInWmPaint, true); //this.UpdateStyles(); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.UpdateStyles(); try { mdi = (MDIParent)this.MdiParent; txtThisReceiverID.Text = string.Format("{0:00}", mdi.myReceiverID); // cyim 2016.10.31 : 대용량 수신기용 UI 변경 //this.PicBoard = new PictureBox[16]{ // picBoard1,picBoard2,picBoard3,picBoard4,picBoard5,picBoard6,picBoard7,picBoard8, // picBoard9,picBoard10,picBoard11,picBoard12,picBoard13,picBoard14,picBoard15,picBoard16 //}; //this.lblBoardComm = new Label[16]{ // lblBoardComm1,lblBoardComm2,lblBoardComm3,lblBoardComm4,lblBoardComm5,lblBoardComm6,lblBoardComm7,lblBoardComm8, // lblBoardComm9,lblBoardComm10,lblBoardComm11,lblBoardComm12,lblBoardComm13,lblBoardComm14,lblBoardComm15,lblBoardComm16 //}; //this.Board_loop0 = new Button[16]{ // btnBoard1_loop0,btnBoard2_loop0,btnBoard3_loop0,btnBoard4_loop0,btnBoard5_loop0,btnBoard6_loop0,btnBoard7_loop0,btnBoard8_loop0, // btnBoard9_loop0,btnBoard10_loop0,btnBoard11_loop0,btnBoard12_loop0,btnBoard13_loop0,btnBoard14_loop0,btnBoard15_loop0,btnBoard16_loop0 //}; //this.Board_loop1 = new Button[16]{ // btnBoard1_loop1,btnBoard2_loop1,btnBoard3_loop1,btnBoard4_loop1,btnBoard5_loop1,btnBoard6_loop1,btnBoard7_loop1,btnBoard8_loop1, // btnBoard9_loop1,btnBoard10_loop1,btnBoard11_loop1,btnBoard12_loop1,btnBoard13_loop1,btnBoard14_loop1,btnBoard15_loop1,btnBoard16_loop1 //}; // cyim 2016.10.31 : 대용량 수신기용 UI 변경 this.PicBoard = new Label[64]{ lbl_COMM1, lbl_COMM2, lbl_COMM3, lbl_COMM4, lbl_COMM5, lbl_COMM6, lbl_COMM7, lbl_COMM8, lbl_COMM9, lbl_COMM10, lbl_COMM11, lbl_COMM12, lbl_COMM13, lbl_COMM14, lbl_COMM15, lbl_COMM16, lbl_COMM17, lbl_COMM18, lbl_COMM19, lbl_COMM20, lbl_COMM21, lbl_COMM22, lbl_COMM23, lbl_COMM24, lbl_COMM25, lbl_COMM26, lbl_COMM27, lbl_COMM28, lbl_COMM29, lbl_COMM30, lbl_COMM31, lbl_COMM32, lbl_COMM33, lbl_COMM34, lbl_COMM35, lbl_COMM36, lbl_COMM37, lbl_COMM38, lbl_COMM39, lbl_COMM40, lbl_COMM41, lbl_COMM42, lbl_COMM43, lbl_COMM44, lbl_COMM45, lbl_COMM46, lbl_COMM47, lbl_COMM48, lbl_COMM49, lbl_COMM50, lbl_COMM51, lbl_COMM52, lbl_COMM53, lbl_COMM54, lbl_COMM55, lbl_COMM56, lbl_COMM57, lbl_COMM58, lbl_COMM59, lbl_COMM60, lbl_COMM61, lbl_COMM62, lbl_COMM63, lbl_COMM64 }; this.Board_loop0 = new Button[64]{ btnBoard1_loop0, btnBoard2_loop0, btnBoard3_loop0, btnBoard4_loop0, btnBoard5_loop0, btnBoard6_loop0, btnBoard7_loop0, btnBoard8_loop0, btnBoard9_loop0, btnBoard10_loop0, btnBoard11_loop0, btnBoard12_loop0, btnBoard13_loop0, btnBoard14_loop0, btnBoard15_loop0, btnBoard16_loop0, btnBoard17_loop0, btnBoard18_loop0, btnBoard19_loop0, btnBoard20_loop0, btnBoard21_loop0, btnBoard22_loop0, btnBoard23_loop0, btnBoard24_loop0, btnBoard25_loop0, btnBoard26_loop0, btnBoard27_loop0, btnBoard28_loop0, btnBoard29_loop0, btnBoard30_loop0, btnBoard31_loop0, btnBoard32_loop0, btnBoard33_loop0, btnBoard34_loop0, btnBoard35_loop0, btnBoard36_loop0, btnBoard37_loop0, btnBoard38_loop0, btnBoard39_loop0, btnBoard40_loop0, btnBoard41_loop0, btnBoard42_loop0, btnBoard43_loop0, btnBoard44_loop0, btnBoard45_loop0, btnBoard46_loop0, btnBoard47_loop0, btnBoard48_loop0, btnBoard49_loop0, btnBoard50_loop0, btnBoard51_loop0, btnBoard52_loop0, btnBoard53_loop0, btnBoard54_loop0, btnBoard55_loop0, btnBoard56_loop0, btnBoard57_loop0, btnBoard58_loop0, btnBoard59_loop0, btnBoard60_loop0, btnBoard61_loop0, btnBoard62_loop0, btnBoard63_loop0, btnBoard64_loop0 }; this.Board_loop1 = new Button[64]{ btnBoard1_loop1, btnBoard2_loop1, btnBoard3_loop1, btnBoard4_loop1, btnBoard5_loop1, btnBoard6_loop1, btnBoard7_loop1, btnBoard8_loop1, btnBoard9_loop1, btnBoard10_loop1, btnBoard11_loop1, btnBoard12_loop1, btnBoard13_loop1, btnBoard14_loop1, btnBoard15_loop1, btnBoard16_loop1, btnBoard17_loop1, btnBoard18_loop1, btnBoard19_loop1, btnBoard20_loop1, btnBoard21_loop1, btnBoard22_loop1, btnBoard23_loop1, btnBoard24_loop1, btnBoard25_loop1, btnBoard26_loop1, btnBoard27_loop1, btnBoard28_loop1, btnBoard29_loop1, btnBoard30_loop1, btnBoard31_loop1, btnBoard32_loop1, btnBoard33_loop1, btnBoard34_loop1, btnBoard35_loop1, btnBoard36_loop1, btnBoard37_loop1, btnBoard38_loop1, btnBoard39_loop1, btnBoard40_loop1, btnBoard41_loop1, btnBoard42_loop1, btnBoard43_loop1, btnBoard44_loop1, btnBoard45_loop1, btnBoard46_loop1, btnBoard47_loop1, btnBoard48_loop1, btnBoard49_loop1, btnBoard50_loop1, btnBoard51_loop1, btnBoard52_loop1, btnBoard53_loop1, btnBoard54_loop1, btnBoard55_loop1, btnBoard56_loop1, btnBoard57_loop1, btnBoard58_loop1, btnBoard59_loop1, btnBoard60_loop1, btnBoard61_loop1, btnBoard62_loop1, btnBoard63_loop1, btnBoard64_loop1 }; this.Board_loop2 = new Button[64]{ btnBoard1_loop2, btnBoard2_loop2, btnBoard3_loop2, btnBoard4_loop2, btnBoard5_loop2, btnBoard6_loop2, btnBoard7_loop2, btnBoard8_loop2, btnBoard9_loop2, btnBoard10_loop2, btnBoard11_loop2, btnBoard12_loop2, btnBoard13_loop2, btnBoard14_loop2, btnBoard15_loop2, btnBoard16_loop2, btnBoard17_loop2, btnBoard18_loop2, btnBoard19_loop2, btnBoard20_loop2, btnBoard21_loop2, btnBoard22_loop2, btnBoard23_loop2, btnBoard24_loop2, btnBoard25_loop2, btnBoard26_loop2, btnBoard27_loop2, btnBoard28_loop2, btnBoard29_loop2, btnBoard30_loop2, btnBoard31_loop2, btnBoard32_loop2, btnBoard33_loop2, btnBoard34_loop2, btnBoard35_loop2, btnBoard36_loop2, btnBoard37_loop2, btnBoard38_loop2, btnBoard39_loop2, btnBoard40_loop2, btnBoard41_loop2, btnBoard42_loop2, btnBoard43_loop2, btnBoard44_loop2, btnBoard45_loop2, btnBoard46_loop2, btnBoard47_loop2, btnBoard48_loop2, btnBoard49_loop2, btnBoard50_loop2, btnBoard51_loop2, btnBoard52_loop2, btnBoard53_loop2, btnBoard54_loop2, btnBoard55_loop2, btnBoard56_loop2, btnBoard57_loop2, btnBoard58_loop2, btnBoard59_loop2, btnBoard60_loop2, btnBoard61_loop2, btnBoard62_loop2, btnBoard63_loop2, btnBoard64_loop2 }; this.Board_loop3 = new Button[64]{ btnBoard1_loop3, btnBoard2_loop3, btnBoard3_loop3, btnBoard4_loop3, btnBoard5_loop3, btnBoard6_loop3, btnBoard7_loop3, btnBoard8_loop3, btnBoard9_loop3, btnBoard10_loop3, btnBoard11_loop3, btnBoard12_loop3, btnBoard13_loop3, btnBoard14_loop3, btnBoard15_loop3, btnBoard16_loop3, btnBoard17_loop3, btnBoard18_loop3, btnBoard19_loop3, btnBoard20_loop3, btnBoard21_loop3, btnBoard22_loop3, btnBoard23_loop3, btnBoard24_loop3, btnBoard25_loop3, btnBoard26_loop3, btnBoard27_loop3, btnBoard28_loop3, btnBoard29_loop3, btnBoard30_loop3, btnBoard31_loop3, btnBoard32_loop3, btnBoard33_loop3, btnBoard34_loop3, btnBoard35_loop3, btnBoard36_loop3, btnBoard37_loop3, btnBoard38_loop3, btnBoard39_loop3, btnBoard40_loop3, btnBoard41_loop3, btnBoard42_loop3, btnBoard43_loop3, btnBoard44_loop3, btnBoard45_loop3, btnBoard46_loop3, btnBoard47_loop3, btnBoard48_loop3, btnBoard49_loop3, btnBoard50_loop3, btnBoard51_loop3, btnBoard52_loop3, btnBoard53_loop3, btnBoard54_loop3, btnBoard55_loop3, btnBoard56_loop3, btnBoard57_loop3, btnBoard58_loop3, btnBoard59_loop3, btnBoard60_loop3, btnBoard61_loop3, btnBoard62_loop3, btnBoard63_loop3, btnBoard64_loop3 }; getData(); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void frmBoardGroup_Activated(object sender, EventArgs e) { try { this.mdi.SelectMenuIndex = 3; } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void frmBoardGroup_Disposed(object sender, EventArgs e) { try { this.mdi.SelectMenuIndex = 0; } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void getData() { try { if (this.InvokeRequired) { deleFormInit d = new deleFormInit(getData); this.Invoke(d, new object[] { }); } else { init(); if (mdi.ui == null) return; ReceiverTypeInfo receiverInfo = mdi.ui.MyReceiverTypeInfo; if (receiverInfo == null) return; BoardTypeInfo[] boardInfos = receiverInfo.MyBoardType; //전체통신보드 if (boardInfos != null) { foreach (BoardTypeInfo brd in boardInfos) { if (brd != null) { if (brd.UseFlag) { // cyim 2016.10.31 : 대용량 수신기용 UI 변경 if (brd.Loop0UseFlag) { this.Board_loop0[brd.BoardNo - 1].Enabled = true; this.Board_loop0[brd.BoardNo - 1].BackColor = Color.Blue; // LCH 2018.02.27 : 수정됨 } if (brd.Loop1UseFlag) { this.Board_loop1[brd.BoardNo - 1].Enabled = true; this.Board_loop1[brd.BoardNo - 1].BackColor = Color.Blue; // LCH 2018.02.27 : 수정됨 } if (brd.Loop2UseFlag) { this.Board_loop2[brd.BoardNo - 1].Enabled = true; this.Board_loop2[brd.BoardNo - 1].BackColor = Color.Blue; // LCH 2018.02.27 : 수정됨 } if (brd.Loop3UseFlag) { this.Board_loop3[brd.BoardNo - 1].Enabled = true; this.Board_loop3[brd.BoardNo - 1].BackColor = Color.Blue; // LCH 2018.02.27 : 수정됨 } } } } } btnCommand_Click(btnCommand, EventArgs.Empty); } } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void init() { try { // cyim 2016.10.31 : 대용량 수신기용 UI 변경 for (int i = 0; i < 64; i++) { // cyim 2013.8.1 디자인개선작업 : 시스템정보 - 중계반상태보기 imageList1->imageList_RepeaterBoard //this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[3]; //비사용 -> 비활성화 this.PicBoard[i].BackColor = Color.Gray; this.Board_loop0[i].Enabled = false; this.Board_loop1[i].Enabled = false; this.Board_loop2[i].Enabled = false; this.Board_loop3[i].Enabled = false; //this.lblBoardComm[i].Visible = false; } } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnWinClose_Click(object sender, EventArgs e) { this.Close(); } private void btnCommand_Click(object sender, EventArgs e) { try { MDIParent mdi = (MDIParent)this.MdiParent; SocketUI ui = mdi.ui; //버튼 비활성 설정 button_end(false); LFC.Log("타입: 수신기 조작 로그, 메세지: 시스템정보-중계기 상태보기-읽기명령 클릭"); //통신보드 전체 읽기 명령 dCommandResponse d = new dCommandResponse(BoardInfoAll); //명령생성 및 실행 //중계기 설정 데이터를 CmdInfo에 넣어준다.. CmdInfo cmd = new CmdInfo(prt_cmd_define.read_command_status, mdi.myReceiverID, 1, 0, 0, d); cmd.CommandType = "BS"; cmd.ApplyRange = "B"; //차단레벨(회로타입차단용) A-All,C-Comm,B-Board,L-Loop,R-중계기,D-회로,I-입력회로,O-출력회로 ui.runCommand(cmd); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } //화면 마우스 커서 및 버튼 다시 클릭 못하도록 설정 및 해제 private void button_end(Boolean val) { try { if (val) { this.btnCommand.Enabled = true; this.Cursor = Cursors.Default; } else { this.btnCommand.Enabled = false; this.Cursor = Cursors.WaitCursor; } } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } //*********************************************************************// // 통신보드 전체읽기 응답데이터 이벤트 // //*********************************************************************// public void BoardInfoAll(CmdInfo cmd) { //에러응답처리 if (!Util.ComInfoErrProcess(cmd, mdi.ui.Connected, "RCVData_ReadCommandStatus")) // cyim 2015.7.23 NACK 처리 부분 오류 { button_end(true); return; } try { RCVData_ReadCommandStatus resData = (RCVData_ReadCommandStatus)cmd.ResponseData; string[] status = resData.BoardConnStatus; // cyim 2016.10.31 : 대용량 수신기용 UI 변경 for (int i = 0; i < 64; i++) { // // cyim 2013.8.1 디자인개선작업 : 시스템정보 - 중계반상태보기 imageList1->imageList_RepeaterBoard (회색,파랑,빨강) // // F-front,B-back,X-error,N-none 로 들어온다 // 비활성화 if (status[i].Equals("N")) { //this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[3]; this.PicBoard[i].BackColor = Color.Gray; } //사용 else if (status[i].Equals("F")) { //this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[1]; // cyim 2013.8.1 디자인개선작업 : imageList_Loop 추가해서 버튼색상 반영 //this.Board_loop0[i].BackgroundImage = imageList_Loop.Images[1]; //this.Board_loop1[i].BackgroundImage = imageList_Loop.Images[1]; this.PicBoard[i].BackColor = Color.Transparent; this.Board_loop0[i].BackColor = this.Board_loop1[i].BackColor = this.Board_loop2[i].BackColor = this.Board_loop3[i].BackColor = Color.AliceBlue; } // cyim 2013.8.1 중계반상태보기 화면에서 통신에러는 이미지 표시가 안됨 E->X //통신에러 else if (status[i].Equals("X")) { //this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[2]; // cyim 2013.8.1 디자인개선작업 : imageList_Loop 추가해서 버튼색상 반영 //this.Board_loop0[i].BackgroundImage = imageList_Loop.Images[2]; //this.Board_loop1[i].BackgroundImage = imageList_Loop.Images[2]; this.PicBoard[i].BackColor = Color.Transparent; this.Board_loop0[i].BackColor = this.Board_loop1[i].BackColor = this.Board_loop2[i].BackColor = this.Board_loop3[i].BackColor = Color.PaleVioletRed; // cyim 2013.8.1 중계반상태보기에서 통신에러 문구는 표시안함 //this.lblBoardComm[i].Text = "통신에러"; //this.lblBoardComm[i].Visible = true; } } } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } finally { //버튼 비활성 해제 button_end(true); } } private void btnBoard_loop_Click(object sender, EventArgs e) { try { // ex : btnBoard2_loop3 Button btn = (Button)sender; string[] btn_name = null; btn_name = btn.Name.Split('_'); int board_id = Int32.Parse(btn_name[0].Substring(8)); int loop_no = Int32.Parse(btn_name[1].Substring(4)); frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(board_id, loop_no); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } /* private void btnBoard1_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(1, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard1_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(1, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard2_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(2, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard2_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(2, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard3_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(3, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard3_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(3, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard4_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(4, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard4_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(4, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard5_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(5, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard5_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(5, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard6_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(6, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard6_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(6, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard7_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(7, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard7_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(7, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard8_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(8, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard8_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(8, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard16_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(16, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard16_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(16, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard15_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(15, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard15_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(15, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard14_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(14, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard14_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(14, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard13_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(13, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard13_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(13, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard12_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(12, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard12_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(12, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard11_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(11, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard11_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(11, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard10_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(10, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard10_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(10, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard9_loop0_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(9, 0); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } private void btnBoard9_loop1_Click(object sender, EventArgs e) { try { frmRepeaterGroup frm = new frmRepeaterGroup(); frm.setBoardId(9, 1); mdi.ShowChildForm(frm); } catch (Exception ex) { Util.UErrorMessage(ex, 0, 0); } } */ } }