private void Label() { hashtable = new Hashtable(); hashtable.Add("size", new Size(435, 45)); hashtable.Add("point", new Point(45, 5)); hashtable.Add("color", Color.White); hashtable.Add("name", "lb1"); hashtable.Add("text", "날짜를 선택하고 버튼을 눌러주세요."); lb1 = cmm.getLabel(hashtable, Calender_title); lb1.Font = font3; hashtable = new Hashtable(); hashtable.Add("size", new Size(415, 35)); hashtable.Add("point", new Point(45, 5)); hashtable.Add("color", Color.Transparent); hashtable.Add("name", "lb2"); hashtable.Add("text", "사용할 라커 번호를 선택해주세요."); lb2 = cmm.getLabel(hashtable, Locker_title); lb2.Font = font3; }
/* 라벨 */ private void Label() { /* 이름부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(90, 50)); hashtable.Add("point", new Point(20, 65)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb1"); hashtable.Add("text", "이름"); lb1 = cmm.getLabel(hashtable, pnl1); lb1.ForeColor = Color.Black; lb1.BackColor = Color.Transparent; lb1.Font = font1; /* 나이부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(90, 50)); hashtable.Add("point", new Point(20, 145)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb2"); hashtable.Add("text", "나이"); lb2 = cmm.getLabel(hashtable, pnl1); lb2.ForeColor = Color.Black; lb2.BackColor = Color.Transparent; lb2.Font = font1; /* 성별부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(90, 50)); hashtable.Add("point", new Point(20, 225)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb3"); hashtable.Add("text", "성별"); lb3 = cmm.getLabel(hashtable, pnl1); lb3.ForeColor = Color.Black; lb3.BackColor = Color.Transparent; lb3.Font = font1; /* 전화번호부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(145, 50)); hashtable.Add("point", new Point(20, 305)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb5"); hashtable.Add("text", "전화번호"); lb5 = cmm.getLabel(hashtable, pnl1); lb5.ForeColor = Color.Black; lb5.BackColor = Color.Transparent; lb5.Font = font1; /* 주소부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(90, 50)); hashtable.Add("point", new Point(20, 385)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb4"); hashtable.Add("text", "주소"); lb4 = cmm.getLabel(hashtable, pnl1); lb4.ForeColor = Color.Black; lb4.BackColor = Color.Transparent; lb4.Font = font1; /* 라커부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(90, 50)); hashtable.Add("point", new Point(20, 547)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb6"); hashtable.Add("text", "라커"); lb6 = cmm.getLabel(hashtable, pnl1); lb6.ForeColor = Color.Black; lb6.BackColor = Color.Transparent; lb6.Font = font1; /* 달력부분 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(90, 50)); hashtable.Add("point", new Point(20, 467)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb7"); hashtable.Add("text", "기간"); lb7 = cmm.getLabel(hashtable, pnl1); lb7.ForeColor = Color.Black; lb7.BackColor = Color.Transparent; lb7.Font = font1; /* 물결 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(40, 40)); hashtable.Add("point", new Point(380, 465)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb8"); hashtable.Add("text", "~"); lb8 = cmm.getLabel(hashtable, pnl1); lb8.ForeColor = Color.Black; lb8.BackColor = Color.Transparent; lb8.Font = font1; /* 회원가입 라벨 */ hashtable = new Hashtable(); hashtable.Add("size", new Size(230, 40)); hashtable.Add("point", new Point(380, 5)); hashtable.Add("color", Color.Black); hashtable.Add("name", "lb9"); hashtable.Add("text", "회 원 등 록"); lb9 = cmm.getLabel(hashtable, register_title); lb9.ForeColor = Color.Black; lb9.BackColor = Color.Transparent; lb9.Font = font3; if (sub) { lb9.Text = "회 원 수 정"; } }
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 = ""; }