private void Textbox() { hashtable = new Hashtable(); hashtable.Add("point", new Point(226, 65)); hashtable.Add("width", "218"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb1"); hashtable.Add("enabled", true); tb1 = cmm.getTextBox(hashtable, Calendar_pnl); tb1.Font = font3; tb1.TextAlign = HorizontalAlignment.Center; tb1.ReadOnly = true; tb1.Text = monthCalendar1.SelectionRange.Start.ToShortDateString(); }
/* 텍박 */ private void Textbox() { /* 이름부분 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(180, 70)); hashtable.Add("width", "700"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb1"); hashtable.Add("enabled", true); tb1 = cmm.getTextBox(hashtable, pnl1); tb1.Font = font2; tb1.BorderStyle = BorderStyle.Fixed3D; /* 나이부분 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(180, 150)); hashtable.Add("width", "700"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb2"); hashtable.Add("enabled", true); tb2 = cmm.getTextBox(hashtable, pnl1); tb2.KeyPress += Tb3_KeyPress; tb2.Font = font2; tb2.BorderStyle = BorderStyle.Fixed3D; /* 전화번호부분 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(180, 310)); hashtable.Add("width", "700"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb3"); hashtable.Add("enabled", true); tb3 = cmm.getTextBox(hashtable, pnl1); tb3.Font = font2; tb3.BorderStyle = BorderStyle.Fixed3D; tb3.KeyPress += Tb3_KeyPress; /* 주소부분 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(180, 390)); hashtable.Add("width", "700"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb4"); hashtable.Add("enabled", true); tb4 = cmm.getTextBox(hashtable, pnl1); tb4.Font = font2; tb4.BorderStyle = BorderStyle.Fixed3D; /* 라커 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(180, 550)); hashtable.Add("width", "110"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb5"); hashtable.Add("enabled", true); tb5 = cmm.getTextBox(hashtable, pnl1); tb5.TextAlign = HorizontalAlignment.Center; tb5.Font = font2; tb5.BorderStyle = BorderStyle.Fixed3D; tb5.Enabled = false; /* 달력부분 시작일 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(180, 470)); hashtable.Add("width", "190"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb6"); hashtable.Add("enabled", true); tb6 = cmm.getTextBox(hashtable, pnl1); tb6.TextAlign = HorizontalAlignment.Center; tb6.Font = font2; tb6.BorderStyle = BorderStyle.Fixed3D; tb6.Enabled = false; /* 달력부분 종료일 */ hashtable = new Hashtable(); hashtable.Add("point", new Point(435, 470)); hashtable.Add("width", "190"); hashtable.Add("color", Color.White); hashtable.Add("name", "tb7"); hashtable.Add("enabled", true); tb7 = cmm.getTextBox(hashtable, pnl1); tb7.TextAlign = HorizontalAlignment.Center; tb7.Font = font2; tb7.BorderStyle = BorderStyle.Fixed3D; tb7.Enabled = false; }
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 = ""; }