/* 버튼 */ private void Button() { if (sub) { /* 수정부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 70)); hashtable.Add("point", new Point(757, 532)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn3"); hashtable.Add("text", "저장"); hashtable.Add("click", (EventHandler)Update); btn3 = cmm.getButton(hashtable, pnl1); btn3.ForeColor = Color.White; btn3.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn3.FlatAppearance.BorderSize = 0; // 테두리 제거 btn3.Font = font2; /* 삭제부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 70)); hashtable.Add("point", new Point(865, 532)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn4"); hashtable.Add("text", "삭제"); hashtable.Add("click", (EventHandler)Delete); btn4 = cmm.getButton(hashtable, pnl1); btn4.ForeColor = Color.White; btn4.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn4.FlatAppearance.BorderSize = 0; // 테두리 제거 btn4.Font = font2; } else { /* 등록부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 70)); hashtable.Add("point", new Point(757, 532)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn1"); hashtable.Add("text", "등록"); hashtable.Add("click", (EventHandler)Register); btn1 = cmm.getButton(hashtable, pnl1); btn1.ForeColor = Color.White; btn1.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn1.FlatAppearance.BorderSize = 0; // 테두리 제거 btn1.Font = font2; /* 초기화부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 70)); hashtable.Add("point", new Point(865, 532)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn2"); hashtable.Add("text", "초기화"); hashtable.Add("click", (EventHandler)Reset); btn2 = cmm.getButton(hashtable, pnl1); btn2.ForeColor = Color.White; btn2.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn2.FlatAppearance.BorderSize = 0; // 테두리 제거 btn2.Font = font2; } }
private void Button() { /* 1개월 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(98, 77)); hashtable.Add("point", new Point(12, 120)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn1"); hashtable.Add("text", "1개월"); hashtable.Add("click", (EventHandler)btn_calendar); btn1 = cmm.getButton(hashtable, Calendar_pnl); btn1.ForeColor = Color.White; btn1.TabStop = false; // 탭방지 btn1.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn1.FlatAppearance.BorderSize = 0; // 테두리 제거 btn1.Font = font1; /* 3개월 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(98, 77)); hashtable.Add("point", new Point(116, 120)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn2"); hashtable.Add("text", "3개월"); hashtable.Add("click", (EventHandler)btn_calendar); btn2 = cmm.getButton(hashtable, Calendar_pnl); btn2.ForeColor = Color.White; btn2.TabStop = false; // 탭방지 btn2.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn2.FlatAppearance.BorderSize = 0; // 테두리 제거 btn2.Font = font1; /* 6개월 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(98, 77)); hashtable.Add("point", new Point(12, 202)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn3"); hashtable.Add("text", "6개월"); hashtable.Add("click", (EventHandler)btn_calendar); btn3 = cmm.getButton(hashtable, Calendar_pnl); btn3.ForeColor = Color.White; btn3.TabStop = false; // 탭방지 btn3.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn3.FlatAppearance.BorderSize = 0; // 테두리 제거 btn3.Font = font1; /* 12개월 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(98, 77)); hashtable.Add("point", new Point(116, 202)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn4"); hashtable.Add("text", "1년"); hashtable.Add("click", (EventHandler)btn_calendar); btn4 = cmm.getButton(hashtable, Calendar_pnl); btn4.ForeColor = Color.White; btn4.TabStop = false; // 탭방지 btn4.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn4.FlatAppearance.BorderSize = 0; // 테두리 제거 btn4.Font = font1; /* 라커 선택 안함 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(55, 244)); hashtable.Add("point", new Point(7, 62)); hashtable.Add("color", Color.Red); hashtable.Add("name", "btn5"); hashtable.Add("text", "사용안함"); hashtable.Add("click", (EventHandler)No_lock_Click); btn5 = cmm.getButton(hashtable, Locker_pnl); btn5.TabStop = false; // 탭방지 btn5.FlatStyle = FlatStyle.Flat; // 테두리 제거 btn5.FlatAppearance.BorderSize = 0; // 테두리 제거 btn5.Font = font2; btn5.ForeColor = Color.White; btn5.Click += No_lock_Click; }
public void Form_test_Load(object sender, EventArgs e) { //--------------------------------------여기부터 패널3번부분 hashtable = new Hashtable(); hashtable.Add("width", "80"); hashtable.Add("point", new Point(61, 10)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb1"); hashtable.Add("enabled", true); tb1 = cmm.getTextBox(hashtable, this); tb1.Text = member.mName; hashtable = new Hashtable(); hashtable.Add("width", "65"); hashtable.Add("point", new Point(61, 50)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb2"); hashtable.Add("enabled", true); tb2 = cmm.getTextBox(hashtable, this); tb2.Text = member.Age; hashtable = new Hashtable(); hashtable.Add("width", "60"); hashtable.Add("point", new Point(61, 90)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb3"); hashtable.Add("enabled", true); tb3 = cmm.getTextBox(hashtable, this); tb3.Text = member.Sex; hashtable = new Hashtable(); hashtable.Add("width", "280"); hashtable.Add("point", new Point(61, 130)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb4"); hashtable.Add("enabled", true); tb4 = cmm.getTextBox(hashtable, this); tb4.Text = member.phone; hashtable = new Hashtable(); hashtable.Add("width", "510"); hashtable.Add("point", new Point(61, 170)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb5"); hashtable.Add("enabled", true); tb5 = cmm.getTextBox(hashtable, this); tb5.Text = member.address; hashtable = new Hashtable(); hashtable.Add("width", "60"); hashtable.Add("point", new Point(61, 210)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb6"); hashtable.Add("enabled", true); tb6 = cmm.getTextBox(hashtable, this); tb6.Text = member.locker; //============================================================= hashtable = new Hashtable(); hashtable.Add("size", new Size(30, 15)); hashtable.Add("point", new Point(30, 15)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb1"); hashtable.Add("text", "이름"); lb1 = cmm.getLabel(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(30, 15)); hashtable.Add("point", new Point(30, 55)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb2"); hashtable.Add("text", "나이"); lb1 = cmm.getLabel(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(30, 15)); hashtable.Add("point", new Point(30, 95)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb3"); hashtable.Add("text", "성별"); lb1 = cmm.getLabel(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(60, 15)); hashtable.Add("point", new Point(30, 135)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb4"); hashtable.Add("text", "전번"); lb1 = cmm.getLabel(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(30, 15)); hashtable.Add("point", new Point(30, 170)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb5"); hashtable.Add("text", "주소"); lb1 = cmm.getLabel(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(60, 15)); hashtable.Add("point", new Point(30, 210)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb6"); hashtable.Add("text", "라커 번호"); lb1 = cmm.getLabel(hashtable, this); //================================================여기까지 패널 3번 //------------------------------------------------패널 2번 hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 45)); hashtable.Add("point", new Point(30, 250)); hashtable.Add("color", Color.White); hashtable.Add("name", "btn1"); hashtable.Add("text", "연장"); hashtable.Add("click", (EventHandler)btn_click); btn1 = cmm.getButton(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 45)); hashtable.Add("point", new Point(150, 250)); hashtable.Add("color", Color.White); hashtable.Add("name", "btn2"); hashtable.Add("text", "수정"); hashtable.Add("click", (EventHandler)btn_click); btn2 = cmm.getButton(hashtable, this); hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 45)); hashtable.Add("point", new Point(270, 250)); hashtable.Add("color", Color.White); hashtable.Add("name", "btn3"); hashtable.Add("text", "삭제"); hashtable.Add("click", (EventHandler)btn_click); btn3 = cmm.getButton(hashtable, this); //=========================================여기까지 패널2번 }
private void Form_infoAdd_Load(object sender, EventArgs e) { api = new WebAPI(); fonts(); hashtable = new Hashtable(); hashtable.Add("size", new Size(1441, 613)); hashtable.Add("point", new Point(10, 10)); hashtable.Add("color", Color.White); hashtable.Add("name", "pn1"); main_pnl = cmm.getPanel2(hashtable, this); /* 왼쪽 패널 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(780, 540)); hashtable.Add("point", new Point(0, 0)); hashtable.Add("color", Color.White); hashtable.Add("name", "pn1"); pn1 = cmm.getPanel(hashtable, main_pnl); hashtable = new Hashtable(); hashtable.Add("size", new Size(1461, 60)); hashtable.Add("point", new Point(0, 550)); hashtable.Add("color", Color.FromArgb(45, 35, 135)); hashtable.Add("name", "pn2"); pn2 = cmm.getPanel(hashtable, main_pnl); /* 오른쪽 패널 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(650, 540)); hashtable.Add("point", new Point(790, 0)); hashtable.Add("color", Color.White); hashtable.Add("name", "pn4"); pn4 = cmm.getPanel(hashtable, main_pnl); pn4.BorderStyle = BorderStyle.FixedSingle; hashtable = new Hashtable(); hashtable.Add("size", new Size(650, 540)); hashtable.Add("point", new Point(0, 0)); hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.CenterImage); pc1 = cmm.getPictureBox(hashtable, pn4); pc1.Image = Properties.Resources.normal_img; //------------------------------------------------패널 2번 hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 50)); hashtable.Add("point", new Point(1114, 5)); hashtable.Add("color", Color.Black); hashtable.Add("name", "update"); hashtable.Add("text", "수정"); hashtable.Add("click", (EventHandler)btn_click); btn1 = cmm.getButton(hashtable, pn2); btn1.Font = font1; btn1.ForeColor = Color.White; btn1.FlatStyle = FlatStyle.Flat; btn1.FlatAppearance.BorderSize = 0; hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 50)); hashtable.Add("point", new Point(1223, 5)); hashtable.Add("color", Color.Black); hashtable.Add("name", "insert"); hashtable.Add("text", "저장"); hashtable.Add("click", (EventHandler)btn_click); btn2 = cmm.getButton(hashtable, pn2); btn2.Font = font1; btn2.ForeColor = Color.White; btn2.FlatStyle = FlatStyle.Flat; btn2.FlatAppearance.BorderSize = 0; hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 50)); hashtable.Add("point", new Point(1332, 5)); hashtable.Add("color", Color.Black); hashtable.Add("name", "delete"); hashtable.Add("text", "삭제"); hashtable.Add("click", (EventHandler)btn_click); btn3 = cmm.getButton(hashtable, pn2); btn3.Font = font1; btn3.ForeColor = Color.White; btn3.FlatStyle = FlatStyle.Flat; btn3.FlatAppearance.BorderSize = 0; hashtable = new Hashtable(); hashtable.Add("size", new Size(70, 50)); hashtable.Add("point", new Point(709, 5)); hashtable.Add("color", Color.FromArgb(45, 35, 135)); hashtable.Add("name", "btn6"); hashtable.Add("text", ""); hashtable.Add("click", (EventHandler)upload_click); btn6 = cmm.getButton(hashtable, pn2); btn6.Image = Properties.Resources.file_img; btn6.ForeColor = Color.White; btn6.FlatStyle = FlatStyle.Flat; btn6.FlatAppearance.BorderSize = 0; hashtable = new Hashtable(); hashtable.Add("size", new Size(100, 50)); hashtable.Add("point", new Point(1005, 5)); hashtable.Add("color", Color.Black); hashtable.Add("name", "btn7"); hashtable.Add("text", "초기화"); hashtable.Add("click", (EventHandler)btn_clear); btn7 = cmm.getButton(hashtable, pn2); btn7.Font = font1; btn7.ForeColor = Color.White; btn7.FlatStyle = FlatStyle.Flat; btn7.FlatAppearance.BorderSize = 0; //=========================================여기까지 패널2번 //--------------------------------------여기부터 패널3번부분 hashtable = new Hashtable(); hashtable.Add("size", new Size(67, 30)); hashtable.Add("point", new Point(10, 13)); hashtable.Add("color", Color.FromArgb(45, 35, 135)); hashtable.Add("name", "lb1"); hashtable.Add("text", "제품명"); lb1 = cmm.getLabel(hashtable, pn2); lb1.Font = font2; lb1.ForeColor = Color.White; hashtable = new Hashtable(); hashtable.Add("size", new Size(67, 30)); hashtable.Add("point", new Point(240, 13)); hashtable.Add("color", Color.FromArgb(45, 35, 135)); hashtable.Add("name", "lb2"); hashtable.Add("text", "회사명"); lb2 = cmm.getLabel(hashtable, pn2); lb2.Font = font2; lb2.ForeColor = Color.White; hashtable = new Hashtable(); hashtable.Add("size", new Size(50, 30)); hashtable.Add("point", new Point(468, 13)); hashtable.Add("color", Color.FromArgb(45, 35, 135)); hashtable.Add("name", "lb3"); hashtable.Add("text", "무게"); lb3 = cmm.getLabel(hashtable, pn2); lb3.Font = font2; lb3.ForeColor = Color.White; hashtable = new Hashtable(); hashtable.Add("size", new Size(50, 30)); hashtable.Add("point", new Point(591, 13)); hashtable.Add("color", Color.FromArgb(45, 35, 135)); hashtable.Add("name", "lb4"); hashtable.Add("text", "수량"); lb4 = cmm.getLabel(hashtable, pn2); lb4.Font = font2; lb4.ForeColor = Color.White; //-------------------------------------------------------------------- hashtable = new Hashtable(); hashtable.Add("width", "150"); hashtable.Add("point", new Point(77, 14)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb2"); hashtable.Add("enabled", true); tb2 = cmm.getTextBox(hashtable, pn2); tb2.Font = font1; hashtable = new Hashtable(); hashtable.Add("width", "150"); hashtable.Add("point", new Point(306, 14)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb3"); hashtable.Add("enabled", true); tb3 = cmm.getTextBox(hashtable, pn2); tb3.Font = font1; hashtable = new Hashtable(); hashtable.Add("width", "60"); hashtable.Add("point", new Point(518, 14)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb4"); hashtable.Add("enabled", true); tb4 = cmm.getTextBox(hashtable, pn2); tb4.Font = font1; hashtable = new Hashtable(); hashtable.Add("width", "60"); hashtable.Add("point", new Point(641, 14)); hashtable.Add("color", Color.White); hashtable.Add("name", "tb5"); hashtable.Add("enabled", true); tb5 = cmm.getTextBox(hashtable, pn2); tb5.Font = font1; hashtable = new Hashtable(); hashtable.Add("color", Color.White); hashtable.Add("name", "listView"); hashtable.Add("click", (MouseEventHandler)listView_click); lv = cmm.getListView(hashtable, pn1); lv.Columns.Add("제품번호", 80, HorizontalAlignment.Center); lv.Columns.Add("제품명", 150, HorizontalAlignment.Center); lv.Columns.Add("회사명", 150, HorizontalAlignment.Center); lv.Columns.Add("무게(kg)", 80, HorizontalAlignment.Center); lv.Columns.Add("수량", 80, HorizontalAlignment.Center); lv.Columns.Add("구매일", 235, HorizontalAlignment.Center); lv.Font = font1; lv.ColumnWidthChanging += Lv_ColumnWidthChanging; option(); api.SelectListView("http://192.168.3.12:5000/select", lv); tb2.Text = ""; tb3.Text = ""; tb4.Text = ""; tb5.Text = ""; urlstr = ""; hNo = ""; filename = ""; }