frmBoardGroup.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using System.Diagnostics;
  9. namespace FPER
  10. {
  11. public partial class frmBoardGroup : Form
  12. {
  13. public frmBoardGroup()
  14. {
  15. InitializeComponent();
  16. }
  17. MDIParent mdi = null;
  18. LogFileCreate LFC = new LogFileCreate();
  19. PictureBox[] PicBoard;
  20. Button[] Board_loop0;
  21. Button[] Board_loop1;
  22. Label[] lblBoardComm;
  23. delegate void deleFormInit();
  24. public void Form_Init()
  25. {
  26. try
  27. {
  28. if (this.InvokeRequired)
  29. {
  30. deleFormInit d = new deleFormInit(Form_Init);
  31. this.Invoke(d, new object[] { });
  32. }
  33. else
  34. {
  35. getData();
  36. }
  37. }
  38. catch (Exception ex)
  39. {
  40. Util.UErrorMessage(ex, 0, 0);
  41. //MessageBox.Show(string.Format("[{0}]\r\n{1}", ex.Message, ex.Source), Application.ProductName);
  42. }
  43. }
  44. private void frmBoardGroup_Load(object sender, EventArgs e)
  45. {
  46. // cyim 2013.8.1 : 더블버퍼링 적용
  47. SetStyle(ControlStyles.UserPaint, true);
  48. //this.UpdateStyles();
  49. SetStyle(ControlStyles.AllPaintingInWmPaint, true);
  50. //this.UpdateStyles();
  51. SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
  52. this.UpdateStyles();
  53. try
  54. {
  55. mdi = (MDIParent)this.MdiParent;
  56. txtThisReceiverID.Text = string.Format("{0:00}", mdi.myReceiverID);
  57. this.PicBoard = new PictureBox[16]{
  58. picBoard1,picBoard2,picBoard3,picBoard4,picBoard5,picBoard6,picBoard7,picBoard8,
  59. picBoard9,picBoard10,picBoard11,picBoard12,picBoard13,picBoard14,picBoard15,picBoard16
  60. };
  61. this.Board_loop0 = new Button[16]{
  62. btnBoard1_loop0,btnBoard2_loop0,btnBoard3_loop0,btnBoard4_loop0,btnBoard5_loop0,btnBoard6_loop0,btnBoard7_loop0,btnBoard8_loop0,
  63. btnBoard9_loop0,btnBoard10_loop0,btnBoard11_loop0,btnBoard12_loop0,btnBoard13_loop0,btnBoard14_loop0,btnBoard15_loop0,btnBoard16_loop0
  64. };
  65. this.Board_loop1 = new Button[16]{
  66. btnBoard1_loop1,btnBoard2_loop1,btnBoard3_loop1,btnBoard4_loop1,btnBoard5_loop1,btnBoard6_loop1,btnBoard7_loop1,btnBoard8_loop1,
  67. btnBoard9_loop1,btnBoard10_loop1,btnBoard11_loop1,btnBoard12_loop1,btnBoard13_loop1,btnBoard14_loop1,btnBoard15_loop1,btnBoard16_loop1
  68. };
  69. this.lblBoardComm = new Label[16]{
  70. lblBoardComm1,lblBoardComm2,lblBoardComm3,lblBoardComm4,lblBoardComm5,lblBoardComm6,lblBoardComm7,lblBoardComm8,
  71. lblBoardComm9,lblBoardComm10,lblBoardComm11,lblBoardComm12,lblBoardComm13,lblBoardComm14,lblBoardComm15,lblBoardComm16
  72. };
  73. getData();
  74. }
  75. catch (Exception ex)
  76. {
  77. Util.UErrorMessage(ex, 0, 0);
  78. //MessageBox.Show(string.Format("[{0}]\r\n{1}", ex.Message, ex.Source), Application.ProductName);
  79. }
  80. }
  81. private void frmBoardGroup_Activated(object sender, EventArgs e)
  82. {
  83. try
  84. {
  85. this.mdi.SelectMenuIndex = 3;
  86. }
  87. catch (Exception ex)
  88. {
  89. Util.UErrorMessage(ex, 0, 0);
  90. }
  91. }
  92. private void frmBoardGroup_Disposed(object sender, EventArgs e)
  93. {
  94. try
  95. {
  96. this.mdi.SelectMenuIndex = 0;
  97. }
  98. catch (Exception ex)
  99. {
  100. Util.UErrorMessage(ex, 0, 0);
  101. }
  102. }
  103. private void getData()
  104. {
  105. try
  106. {
  107. if (this.InvokeRequired)
  108. {
  109. deleFormInit d = new deleFormInit(getData);
  110. this.Invoke(d, new object[] { });
  111. }
  112. else
  113. {
  114. init();
  115. if (mdi.ui == null) return;
  116. ReceiverTypeInfo receiverInfo = mdi.ui.MyReceiverTypeInfo;
  117. if (receiverInfo == null) return;
  118. BoardTypeInfo[] boardInfos = receiverInfo.MyBoardType; //전체통신보드
  119. if (boardInfos != null)
  120. {
  121. foreach (BoardTypeInfo brd in boardInfos)
  122. {
  123. if (brd != null)
  124. {
  125. if (brd.UseFlag)
  126. {
  127. if (brd.Loop0UseFlag)
  128. {
  129. this.Board_loop0[brd.BoardNo - 1].Visible = true;
  130. }
  131. if (brd.Loop1UseFlag)
  132. {
  133. this.Board_loop1[brd.BoardNo - 1].Visible = true;
  134. }
  135. }
  136. }
  137. }
  138. }
  139. btnCommand_Click(btnCommand, EventArgs.Empty);
  140. }
  141. }
  142. catch (Exception ex)
  143. {
  144. Util.UErrorMessage(ex, 0, 0);
  145. //MessageBox.Show(ex.Message, Application.ProductName);
  146. //MessageBox.Show(string.Format("[{0}]\r\n{1}", ex.Message, ex.StackTrace), Application.ProductName);
  147. }
  148. }
  149. private void init()
  150. {
  151. try
  152. {
  153. for (int i = 0; i < 16; i++)
  154. {
  155. // cyim 2013.8.1 디자인개선작업 : 시스템정보 - 중계반상태보기 imageList1->imageList_RepeaterBoard
  156. this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[3]; //비사용 -> 비활성화
  157. this.Board_loop0[i].Visible = false;
  158. this.Board_loop1[i].Visible = false;
  159. this.lblBoardComm[i].Visible = false;
  160. }
  161. }
  162. catch (Exception ex)
  163. {
  164. Util.UErrorMessage(ex, 0, 0);
  165. }
  166. }
  167. private void btnWinClose_Click(object sender, EventArgs e)
  168. {
  169. this.Close();
  170. }
  171. private void btnCommand_Click(object sender, EventArgs e)
  172. {
  173. try
  174. {
  175. MDIParent mdi = (MDIParent)this.MdiParent;
  176. SocketUI ui = mdi.ui;
  177. //버튼 비활성 설정
  178. button_end(false);
  179. LFC.Log("타입: 수신기 조작 로그, 메세지: 시스템정보-중계기 상태보기-읽기명령 클릭");
  180. //통신보드 전체 읽기 명령
  181. dCommandResponse d = new dCommandResponse(BoardInfoAll);
  182. //명령생성 및 실행
  183. //중계기 설정 데이터를 CmdInfo에 넣어준다..
  184. CmdInfo cmd = new CmdInfo(prt_cmd_define.read_command_status, mdi.myReceiverID, 1, 0, 0, d);
  185. cmd.CommandType = "BS";
  186. cmd.ApplyRange = "B"; //차단레벨(회로타입차단용) A-All,C-Comm,B-Board,L-Loop,R-중계기,D-회로,I-입력회로,O-출력회로
  187. ui.runCommand(cmd);
  188. }
  189. catch (Exception ex)
  190. {
  191. Util.UErrorMessage(ex, 0, 0);
  192. //MessageBox.Show(ex.Message, Application.ProductName);
  193. //MessageBox.Show(string.Format("[{0}]\r\n{1}", ex.Message, ex.StackTrace), Application.ProductName);
  194. }
  195. }
  196. //화면 마우스 커서 및 버튼 다시 클릭 못하도록 설정 및 해제
  197. private void button_end(Boolean val)
  198. {
  199. try
  200. {
  201. if (val)
  202. {
  203. this.btnCommand.Enabled = true;
  204. this.Cursor = Cursors.Default;
  205. }
  206. else
  207. {
  208. this.btnCommand.Enabled = false;
  209. this.Cursor = Cursors.WaitCursor;
  210. }
  211. }
  212. catch (Exception ex)
  213. {
  214. Util.UErrorMessage(ex, 0, 0);
  215. }
  216. }
  217. //*********************************************************************//
  218. // 통신보드 전체읽기 응답데이터 이벤트 //
  219. //*********************************************************************//
  220. public void BoardInfoAll(CmdInfo cmd)
  221. {
  222. //에러응답처리
  223. if (!Util.ComInfoErrProcess(cmd, mdi.ui.Connected, "RCVData_ReadCommandStatus")) // cyim 2015.7.23 NACK 처리 부분 오류
  224. {
  225. button_end(true);
  226. return;
  227. }
  228. try
  229. {
  230. RCVData_ReadCommandStatus resData = (RCVData_ReadCommandStatus)cmd.ResponseData;
  231. string[] status = resData.BoardConnStatus;
  232. for (int i = 0; i < 16; i++)
  233. {
  234. //
  235. // cyim 2013.8.1 디자인개선작업 : 시스템정보 - 중계반상태보기 imageList1->imageList_RepeaterBoard (회색,파랑,빨강)
  236. //
  237. // F-front,B-back,X-error,N-none 로 들어온다
  238. if (status[i].Equals("N"))
  239. {
  240. this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[3]; //비사용 -> 비활성화
  241. }
  242. else if (status[i].Equals("F"))
  243. {
  244. this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[1]; //사용
  245. // cyim 2013.8.1 디자인개선작업 : imageList_Loop 추가해서 버튼색상 반영
  246. this.Board_loop0[i].BackgroundImage = imageList_Loop.Images[1];
  247. this.Board_loop1[i].BackgroundImage = imageList_Loop.Images[1];
  248. }
  249. // cyim 2013.8.1 중계반상태보기 화면에서 통신에러는 이미지 표시가 안됨 E->X
  250. else if (status[i].Equals("X"))
  251. {
  252. this.PicBoard[i].BackgroundImage = imageList_RepeaterBoard.Images[2]; //통신에러
  253. // cyim 2013.8.1 디자인개선작업 : imageList_Loop 추가해서 버튼색상 반영
  254. this.Board_loop0[i].BackgroundImage = imageList_Loop.Images[2];
  255. this.Board_loop1[i].BackgroundImage = imageList_Loop.Images[2];
  256. // cyim 2013.8.1 중계반상태보기에서 통신에러 문구는 표시안함
  257. //this.lblBoardComm[i].Text = "통신에러";
  258. //this.lblBoardComm[i].Visible = true;
  259. }
  260. }
  261. }
  262. catch (Exception ex)
  263. {
  264. Util.UErrorMessage(ex, 0, 0);
  265. }
  266. finally
  267. {
  268. //버튼 비활성 해제
  269. button_end(true);
  270. }
  271. }
  272. private void btnBoard1_loop0_Click(object sender, EventArgs e)
  273. {
  274. try
  275. {
  276. frmRepeaterGroup frm = new frmRepeaterGroup();
  277. frm.setBoardId(1, 0);
  278. mdi.ShowChildForm(frm);
  279. }
  280. catch (Exception ex)
  281. {
  282. Util.UErrorMessage(ex, 0, 0);
  283. }
  284. }
  285. private void btnBoard1_loop1_Click(object sender, EventArgs e)
  286. {
  287. try
  288. {
  289. frmRepeaterGroup frm = new frmRepeaterGroup();
  290. frm.setBoardId(1, 1);
  291. mdi.ShowChildForm(frm);
  292. }
  293. catch (Exception ex)
  294. {
  295. Util.UErrorMessage(ex, 0, 0);
  296. }
  297. }
  298. private void btnBoard2_loop0_Click(object sender, EventArgs e)
  299. {
  300. try
  301. {
  302. frmRepeaterGroup frm = new frmRepeaterGroup();
  303. frm.setBoardId(2, 0);
  304. mdi.ShowChildForm(frm);
  305. }
  306. catch (Exception ex)
  307. {
  308. Util.UErrorMessage(ex, 0, 0);
  309. }
  310. }
  311. private void btnBoard2_loop1_Click(object sender, EventArgs e)
  312. {
  313. try
  314. {
  315. frmRepeaterGroup frm = new frmRepeaterGroup();
  316. frm.setBoardId(2, 1);
  317. mdi.ShowChildForm(frm);
  318. }
  319. catch (Exception ex)
  320. {
  321. Util.UErrorMessage(ex, 0, 0);
  322. }
  323. }
  324. private void btnBoard3_loop0_Click(object sender, EventArgs e)
  325. {
  326. try
  327. {
  328. frmRepeaterGroup frm = new frmRepeaterGroup();
  329. frm.setBoardId(3, 0);
  330. mdi.ShowChildForm(frm);
  331. }
  332. catch (Exception ex)
  333. {
  334. Util.UErrorMessage(ex, 0, 0);
  335. }
  336. }
  337. private void btnBoard3_loop1_Click(object sender, EventArgs e)
  338. {
  339. try
  340. {
  341. frmRepeaterGroup frm = new frmRepeaterGroup();
  342. frm.setBoardId(3, 1);
  343. mdi.ShowChildForm(frm);
  344. }
  345. catch (Exception ex)
  346. {
  347. Util.UErrorMessage(ex, 0, 0);
  348. }
  349. }
  350. private void btnBoard4_loop0_Click(object sender, EventArgs e)
  351. {
  352. try
  353. {
  354. frmRepeaterGroup frm = new frmRepeaterGroup();
  355. frm.setBoardId(4, 0);
  356. mdi.ShowChildForm(frm);
  357. }
  358. catch (Exception ex)
  359. {
  360. Util.UErrorMessage(ex, 0, 0);
  361. }
  362. }
  363. private void btnBoard4_loop1_Click(object sender, EventArgs e)
  364. {
  365. try
  366. {
  367. frmRepeaterGroup frm = new frmRepeaterGroup();
  368. frm.setBoardId(4, 1);
  369. mdi.ShowChildForm(frm);
  370. }
  371. catch (Exception ex)
  372. {
  373. Util.UErrorMessage(ex, 0, 0);
  374. }
  375. }
  376. private void btnBoard5_loop0_Click(object sender, EventArgs e)
  377. {
  378. try
  379. {
  380. frmRepeaterGroup frm = new frmRepeaterGroup();
  381. frm.setBoardId(5, 0);
  382. mdi.ShowChildForm(frm);
  383. }
  384. catch (Exception ex)
  385. {
  386. Util.UErrorMessage(ex, 0, 0);
  387. }
  388. }
  389. private void btnBoard5_loop1_Click(object sender, EventArgs e)
  390. {
  391. try
  392. {
  393. frmRepeaterGroup frm = new frmRepeaterGroup();
  394. frm.setBoardId(5, 1);
  395. mdi.ShowChildForm(frm);
  396. }
  397. catch (Exception ex)
  398. {
  399. Util.UErrorMessage(ex, 0, 0);
  400. }
  401. }
  402. private void btnBoard6_loop0_Click(object sender, EventArgs e)
  403. {
  404. try
  405. {
  406. frmRepeaterGroup frm = new frmRepeaterGroup();
  407. frm.setBoardId(6, 0);
  408. mdi.ShowChildForm(frm);
  409. }
  410. catch (Exception ex)
  411. {
  412. Util.UErrorMessage(ex, 0, 0);
  413. }
  414. }
  415. private void btnBoard6_loop1_Click(object sender, EventArgs e)
  416. {
  417. try
  418. {
  419. frmRepeaterGroup frm = new frmRepeaterGroup();
  420. frm.setBoardId(6, 1);
  421. mdi.ShowChildForm(frm);
  422. }
  423. catch (Exception ex)
  424. {
  425. Util.UErrorMessage(ex, 0, 0);
  426. }
  427. }
  428. private void btnBoard7_loop0_Click(object sender, EventArgs e)
  429. {
  430. try
  431. {
  432. frmRepeaterGroup frm = new frmRepeaterGroup();
  433. frm.setBoardId(7, 0);
  434. mdi.ShowChildForm(frm);
  435. }
  436. catch (Exception ex)
  437. {
  438. Util.UErrorMessage(ex, 0, 0);
  439. }
  440. }
  441. private void btnBoard7_loop1_Click(object sender, EventArgs e)
  442. {
  443. try
  444. {
  445. frmRepeaterGroup frm = new frmRepeaterGroup();
  446. frm.setBoardId(7, 1);
  447. mdi.ShowChildForm(frm);
  448. }
  449. catch (Exception ex)
  450. {
  451. Util.UErrorMessage(ex, 0, 0);
  452. }
  453. }
  454. private void btnBoard8_loop0_Click(object sender, EventArgs e)
  455. {
  456. try
  457. {
  458. frmRepeaterGroup frm = new frmRepeaterGroup();
  459. frm.setBoardId(8, 0);
  460. mdi.ShowChildForm(frm);
  461. }
  462. catch (Exception ex)
  463. {
  464. Util.UErrorMessage(ex, 0, 0);
  465. }
  466. }
  467. private void btnBoard8_loop1_Click(object sender, EventArgs e)
  468. {
  469. try
  470. {
  471. frmRepeaterGroup frm = new frmRepeaterGroup();
  472. frm.setBoardId(8, 1);
  473. mdi.ShowChildForm(frm);
  474. }
  475. catch (Exception ex)
  476. {
  477. Util.UErrorMessage(ex, 0, 0);
  478. }
  479. }
  480. private void btnBoard16_loop0_Click(object sender, EventArgs e)
  481. {
  482. try
  483. {
  484. frmRepeaterGroup frm = new frmRepeaterGroup();
  485. frm.setBoardId(16, 0);
  486. mdi.ShowChildForm(frm);
  487. }
  488. catch (Exception ex)
  489. {
  490. Util.UErrorMessage(ex, 0, 0);
  491. }
  492. }
  493. private void btnBoard16_loop1_Click(object sender, EventArgs e)
  494. {
  495. try
  496. {
  497. frmRepeaterGroup frm = new frmRepeaterGroup();
  498. frm.setBoardId(16, 1);
  499. mdi.ShowChildForm(frm);
  500. }
  501. catch (Exception ex)
  502. {
  503. Util.UErrorMessage(ex, 0, 0);
  504. }
  505. }
  506. private void btnBoard15_loop0_Click(object sender, EventArgs e)
  507. {
  508. try
  509. {
  510. frmRepeaterGroup frm = new frmRepeaterGroup();
  511. frm.setBoardId(15, 0);
  512. mdi.ShowChildForm(frm);
  513. }
  514. catch (Exception ex)
  515. {
  516. Util.UErrorMessage(ex, 0, 0);
  517. }
  518. }
  519. private void btnBoard15_loop1_Click(object sender, EventArgs e)
  520. {
  521. try
  522. {
  523. frmRepeaterGroup frm = new frmRepeaterGroup();
  524. frm.setBoardId(15, 1);
  525. mdi.ShowChildForm(frm);
  526. }
  527. catch (Exception ex)
  528. {
  529. Util.UErrorMessage(ex, 0, 0);
  530. }
  531. }
  532. private void btnBoard14_loop0_Click(object sender, EventArgs e)
  533. {
  534. try
  535. {
  536. frmRepeaterGroup frm = new frmRepeaterGroup();
  537. frm.setBoardId(14, 0);
  538. mdi.ShowChildForm(frm);
  539. }
  540. catch (Exception ex)
  541. {
  542. Util.UErrorMessage(ex, 0, 0);
  543. }
  544. }
  545. private void btnBoard14_loop1_Click(object sender, EventArgs e)
  546. {
  547. try
  548. {
  549. frmRepeaterGroup frm = new frmRepeaterGroup();
  550. frm.setBoardId(14, 1);
  551. mdi.ShowChildForm(frm);
  552. }
  553. catch (Exception ex)
  554. {
  555. Util.UErrorMessage(ex, 0, 0);
  556. }
  557. }
  558. private void btnBoard13_loop0_Click(object sender, EventArgs e)
  559. {
  560. try
  561. {
  562. frmRepeaterGroup frm = new frmRepeaterGroup();
  563. frm.setBoardId(13, 0);
  564. mdi.ShowChildForm(frm);
  565. }
  566. catch (Exception ex)
  567. {
  568. Util.UErrorMessage(ex, 0, 0);
  569. }
  570. }
  571. private void btnBoard13_loop1_Click(object sender, EventArgs e)
  572. {
  573. try
  574. {
  575. frmRepeaterGroup frm = new frmRepeaterGroup();
  576. frm.setBoardId(13, 1);
  577. mdi.ShowChildForm(frm);
  578. }
  579. catch (Exception ex)
  580. {
  581. Util.UErrorMessage(ex, 0, 0);
  582. }
  583. }
  584. private void btnBoard12_loop0_Click(object sender, EventArgs e)
  585. {
  586. try
  587. {
  588. frmRepeaterGroup frm = new frmRepeaterGroup();
  589. frm.setBoardId(12, 0);
  590. mdi.ShowChildForm(frm);
  591. }
  592. catch (Exception ex)
  593. {
  594. Util.UErrorMessage(ex, 0, 0);
  595. }
  596. }
  597. private void btnBoard12_loop1_Click(object sender, EventArgs e)
  598. {
  599. try
  600. {
  601. frmRepeaterGroup frm = new frmRepeaterGroup();
  602. frm.setBoardId(12, 1);
  603. mdi.ShowChildForm(frm);
  604. }
  605. catch (Exception ex)
  606. {
  607. Util.UErrorMessage(ex, 0, 0);
  608. }
  609. }
  610. private void btnBoard11_loop0_Click(object sender, EventArgs e)
  611. {
  612. try
  613. {
  614. frmRepeaterGroup frm = new frmRepeaterGroup();
  615. frm.setBoardId(11, 0);
  616. mdi.ShowChildForm(frm);
  617. }
  618. catch (Exception ex)
  619. {
  620. Util.UErrorMessage(ex, 0, 0);
  621. }
  622. }
  623. private void btnBoard11_loop1_Click(object sender, EventArgs e)
  624. {
  625. try
  626. {
  627. frmRepeaterGroup frm = new frmRepeaterGroup();
  628. frm.setBoardId(11, 1);
  629. mdi.ShowChildForm(frm);
  630. }
  631. catch (Exception ex)
  632. {
  633. Util.UErrorMessage(ex, 0, 0);
  634. }
  635. }
  636. private void btnBoard10_loop0_Click(object sender, EventArgs e)
  637. {
  638. try
  639. {
  640. frmRepeaterGroup frm = new frmRepeaterGroup();
  641. frm.setBoardId(10, 0);
  642. mdi.ShowChildForm(frm);
  643. }
  644. catch (Exception ex)
  645. {
  646. Util.UErrorMessage(ex, 0, 0);
  647. }
  648. }
  649. private void btnBoard10_loop1_Click(object sender, EventArgs e)
  650. {
  651. try
  652. {
  653. frmRepeaterGroup frm = new frmRepeaterGroup();
  654. frm.setBoardId(10, 1);
  655. mdi.ShowChildForm(frm);
  656. }
  657. catch (Exception ex)
  658. {
  659. Util.UErrorMessage(ex, 0, 0);
  660. }
  661. }
  662. private void btnBoard9_loop0_Click(object sender, EventArgs e)
  663. {
  664. try
  665. {
  666. frmRepeaterGroup frm = new frmRepeaterGroup();
  667. frm.setBoardId(9, 0);
  668. mdi.ShowChildForm(frm);
  669. }
  670. catch (Exception ex)
  671. {
  672. Util.UErrorMessage(ex, 0, 0);
  673. }
  674. }
  675. private void btnBoard9_loop1_Click(object sender, EventArgs e)
  676. {
  677. try
  678. {
  679. frmRepeaterGroup frm = new frmRepeaterGroup();
  680. frm.setBoardId(9, 1);
  681. mdi.ShowChildForm(frm);
  682. }
  683. catch (Exception ex)
  684. {
  685. Util.UErrorMessage(ex, 0, 0);
  686. }
  687. }
  688. }
  689. }