private void btnMembre_Click(object sender, EventArgs e) { UC_Member fr = new UC_Member(); MoveSidePanel(btnMembre); ChargerUser(fr); }
private void InitializeComponent() { tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tb_IdNo = new System.Windows.Forms.TextBox(); panel2 = new System.Windows.Forms.Panel(); label2 = new System.Windows.Forms.Label(); panel1 = new System.Windows.Forms.Panel(); label1 = new System.Windows.Forms.Label(); panel3 = new System.Windows.Forms.Panel(); label3 = new System.Windows.Forms.Label(); panel4 = new System.Windows.Forms.Panel(); label4 = new System.Windows.Forms.Label(); tb_vipTelNo = new System.Windows.Forms.TextBox(); tb_vipName = new System.Windows.Forms.TextBox(); tb_vipNo = new System.Windows.Forms.TextBox(); label5 = new System.Windows.Forms.Label(); btn_enter = new System.Windows.Forms.Button(); btn_reset = new System.Windows.Forms.Button(); btn_ChooseEnter = new System.Windows.Forms.Button(); btn_resetCheck = new System.Windows.Forms.Button(); l_pageInfo = new System.Windows.Forms.Label(); btn_pageLeft = new System.Windows.Forms.Button(); btn_pageRight = new System.Windows.Forms.Button(); btn_cancel = new System.Windows.Forms.Button(); uC_Member6 = new POS_Client.UC_Member(); uC_Member5 = new POS_Client.UC_Member(); uC_Member4 = new POS_Client.UC_Member(); uC_Member3 = new POS_Client.UC_Member(); uC_Member2 = new POS_Client.UC_Member(); uC_Member1 = new POS_Client.UC_Member(); tableLayoutPanel1.SuspendLayout(); panel2.SuspendLayout(); panel1.SuspendLayout(); panel3.SuspendLayout(); panel4.SuspendLayout(); SuspendLayout(); tableLayoutPanel1.BackColor = System.Drawing.Color.White; tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; tableLayoutPanel1.ColumnCount = 4; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20f)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30f)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20f)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30f)); tableLayoutPanel1.Controls.Add(tb_IdNo, 3, 1); tableLayoutPanel1.Controls.Add(panel2, 0, 1); tableLayoutPanel1.Controls.Add(panel1, 0, 0); tableLayoutPanel1.Controls.Add(panel3, 2, 0); tableLayoutPanel1.Controls.Add(panel4, 2, 1); tableLayoutPanel1.Controls.Add(tb_vipTelNo, 1, 0); tableLayoutPanel1.Controls.Add(tb_vipName, 1, 1); tableLayoutPanel1.Controls.Add(tb_vipNo, 3, 0); tableLayoutPanel1.Location = new System.Drawing.Point(99, 53); tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 3); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 2; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f)); tableLayoutPanel1.Size = new System.Drawing.Size(796, 104); tableLayoutPanel1.TabIndex = 40; tb_IdNo.BackColor = System.Drawing.Color.White; tb_IdNo.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 136); tb_IdNo.ForeColor = System.Drawing.Color.DarkGray; tb_IdNo.Location = new System.Drawing.Point(567, 62); tb_IdNo.Margin = new System.Windows.Forms.Padding(10); tb_IdNo.MaxLength = 10; tb_IdNo.Name = "tb_IdNo"; tb_IdNo.Size = new System.Drawing.Size(217, 29); tb_IdNo.TabIndex = 44; tb_IdNo.Text = "請輸入身分證字號"; tb_IdNo.Enter += new System.EventHandler(tb_IdNo_Enter); tb_IdNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(tb_IdNo_KeyPress); tb_IdNo.Leave += new System.EventHandler(tb_IdNo_Leave); panel2.BackColor = System.Drawing.Color.FromArgb(102, 102, 102); panel2.Controls.Add(label2); panel2.Dock = System.Windows.Forms.DockStyle.Fill; panel2.Location = new System.Drawing.Point(1, 52); panel2.Margin = new System.Windows.Forms.Padding(0); panel2.Name = "panel2"; panel2.Size = new System.Drawing.Size(158, 51); panel2.TabIndex = 23; label2.AutoSize = true; label2.BackColor = System.Drawing.Color.Transparent; label2.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); label2.ForeColor = System.Drawing.Color.White; label2.Location = new System.Drawing.Point(40, 15); label2.Name = "label2"; label2.Size = new System.Drawing.Size(74, 21); label2.TabIndex = 0; label2.Text = "會員姓名"; panel1.BackColor = System.Drawing.Color.FromArgb(102, 102, 102); panel1.Controls.Add(label1); panel1.Dock = System.Windows.Forms.DockStyle.Fill; panel1.Location = new System.Drawing.Point(1, 1); panel1.Margin = new System.Windows.Forms.Padding(0); panel1.Name = "panel1"; panel1.Size = new System.Drawing.Size(158, 50); panel1.TabIndex = 22; label1.AutoSize = true; label1.BackColor = System.Drawing.Color.Transparent; label1.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); label1.ForeColor = System.Drawing.Color.White; label1.Location = new System.Drawing.Point(23, 18); label1.Name = "label1"; label1.Size = new System.Drawing.Size(106, 21); label1.TabIndex = 0; label1.Text = "購買會員電話"; panel3.BackColor = System.Drawing.Color.FromArgb(102, 102, 102); panel3.Controls.Add(label3); panel3.Dock = System.Windows.Forms.DockStyle.Fill; panel3.Location = new System.Drawing.Point(398, 1); panel3.Margin = new System.Windows.Forms.Padding(0); panel3.Name = "panel3"; panel3.Size = new System.Drawing.Size(158, 50); panel3.TabIndex = 41; label3.AutoSize = true; label3.BackColor = System.Drawing.Color.Transparent; label3.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); label3.ForeColor = System.Drawing.Color.White; label3.Location = new System.Drawing.Point(30, 18); label3.Name = "label3"; label3.Size = new System.Drawing.Size(106, 21); label3.TabIndex = 43; label3.Text = "購買會員編號"; panel4.BackColor = System.Drawing.Color.FromArgb(102, 102, 102); panel4.Controls.Add(label4); panel4.Dock = System.Windows.Forms.DockStyle.Fill; panel4.Location = new System.Drawing.Point(398, 52); panel4.Margin = new System.Windows.Forms.Padding(0); panel4.Name = "panel4"; panel4.Size = new System.Drawing.Size(158, 51); panel4.TabIndex = 42; label4.AutoSize = true; label4.BackColor = System.Drawing.Color.Transparent; label4.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); label4.ForeColor = System.Drawing.Color.White; label4.Location = new System.Drawing.Point(38, 15); label4.Name = "label4"; label4.Size = new System.Drawing.Size(90, 21); label4.TabIndex = 44; label4.Text = "身分證字號"; tb_vipTelNo.BackColor = System.Drawing.Color.White; tb_vipTelNo.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 136); tb_vipTelNo.ForeColor = System.Drawing.Color.DarkGray; tb_vipTelNo.Location = new System.Drawing.Point(170, 11); tb_vipTelNo.Margin = new System.Windows.Forms.Padding(10); tb_vipTelNo.MaxLength = 12; tb_vipTelNo.Name = "tb_vipTelNo"; tb_vipTelNo.Size = new System.Drawing.Size(217, 29); tb_vipTelNo.TabIndex = 24; tb_vipTelNo.Text = "請輸入會員電話"; tb_vipTelNo.Enter += new System.EventHandler(tb_vipTelNo_Enter); tb_vipTelNo.Leave += new System.EventHandler(tb_vipTelNo_Leave); tb_vipName.BackColor = System.Drawing.Color.White; tb_vipName.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 136); tb_vipName.ForeColor = System.Drawing.Color.DarkGray; tb_vipName.Location = new System.Drawing.Point(170, 62); tb_vipName.Margin = new System.Windows.Forms.Padding(10); tb_vipName.MaxLength = 10; tb_vipName.Name = "tb_vipName"; tb_vipName.Size = new System.Drawing.Size(217, 29); tb_vipName.TabIndex = 25; tb_vipName.Text = "請輸入會員姓名"; tb_vipName.Enter += new System.EventHandler(tb_vipName_Enter); tb_vipName.Leave += new System.EventHandler(tb_vipName_Leave); tb_vipNo.BackColor = System.Drawing.Color.White; tb_vipNo.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 136); tb_vipNo.ForeColor = System.Drawing.Color.DarkGray; tb_vipNo.ImeMode = System.Windows.Forms.ImeMode.Disable; tb_vipNo.Location = new System.Drawing.Point(567, 11); tb_vipNo.Margin = new System.Windows.Forms.Padding(10); tb_vipNo.MaxLength = 100; tb_vipNo.Name = "tb_vipNo"; tb_vipNo.Size = new System.Drawing.Size(217, 29); tb_vipNo.TabIndex = 43; tb_vipNo.Text = "請輸入會員編號"; tb_vipNo.Enter += new System.EventHandler(tb_vipNo_Enter); tb_vipNo.Leave += new System.EventHandler(tb_vipNo_Leave); label5.AutoSize = true; label5.Font = new System.Drawing.Font("微軟正黑體", 14f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); label5.ForeColor = System.Drawing.Color.Black; label5.Location = new System.Drawing.Point(454, 19); label5.Name = "label5"; label5.Size = new System.Drawing.Size(86, 24); label5.TabIndex = 41; label5.Text = "選擇會員"; btn_enter.BackColor = System.Drawing.Color.FromArgb(157, 189, 59); btn_enter.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_enter.Font = new System.Drawing.Font("微軟正黑體", 14.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); btn_enter.ForeColor = System.Drawing.Color.White; btn_enter.Location = new System.Drawing.Point(371, 171); btn_enter.Name = "btn_enter"; btn_enter.Size = new System.Drawing.Size(113, 35); btn_enter.TabIndex = 42; btn_enter.TabStop = false; btn_enter.Text = "查詢"; btn_enter.UseVisualStyleBackColor = false; btn_enter.Click += new System.EventHandler(btn_enter_Click); btn_reset.BackColor = System.Drawing.Color.FromArgb(175, 175, 175); btn_reset.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_reset.Font = new System.Drawing.Font("微軟正黑體", 14.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); btn_reset.ForeColor = System.Drawing.Color.White; btn_reset.Location = new System.Drawing.Point(508, 171); btn_reset.Name = "btn_reset"; btn_reset.Size = new System.Drawing.Size(113, 35); btn_reset.TabIndex = 43; btn_reset.TabStop = false; btn_reset.Text = "清除重設"; btn_reset.UseVisualStyleBackColor = false; btn_reset.Click += new System.EventHandler(btn_reset_Click); btn_ChooseEnter.BackColor = System.Drawing.Color.FromArgb(157, 189, 59); btn_ChooseEnter.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_ChooseEnter.Font = new System.Drawing.Font("微軟正黑體", 14.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); btn_ChooseEnter.ForeColor = System.Drawing.Color.White; btn_ChooseEnter.Location = new System.Drawing.Point(371, 540); btn_ChooseEnter.Name = "btn_ChooseEnter"; btn_ChooseEnter.Size = new System.Drawing.Size(113, 35); btn_ChooseEnter.TabIndex = 50; btn_ChooseEnter.TabStop = false; btn_ChooseEnter.Text = "選入勾選"; btn_ChooseEnter.UseVisualStyleBackColor = false; btn_ChooseEnter.Click += new System.EventHandler(btn_ChooseEnter_Click); btn_resetCheck.BackColor = System.Drawing.Color.FromArgb(175, 175, 175); btn_resetCheck.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_resetCheck.Font = new System.Drawing.Font("微軟正黑體", 14.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); btn_resetCheck.ForeColor = System.Drawing.Color.White; btn_resetCheck.Location = new System.Drawing.Point(508, 540); btn_resetCheck.Name = "btn_resetCheck"; btn_resetCheck.Size = new System.Drawing.Size(113, 35); btn_resetCheck.TabIndex = 51; btn_resetCheck.TabStop = false; btn_resetCheck.Text = "清除重設"; btn_resetCheck.UseVisualStyleBackColor = false; btn_resetCheck.Click += new System.EventHandler(btn_resetCheck_Click); l_pageInfo.AutoSize = true; l_pageInfo.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 136); l_pageInfo.Location = new System.Drawing.Point(394, 593); l_pageInfo.Name = "l_pageInfo"; l_pageInfo.Size = new System.Drawing.Size(216, 20); l_pageInfo.TabIndex = 60; l_pageInfo.Text = "共{0}筆.{1}頁|目前在第1頁\r\n"; l_pageInfo.TextAlign = System.Drawing.ContentAlignment.MiddleRight; l_pageInfo.Visible = false; btn_pageLeft.FlatAppearance.BorderSize = 0; btn_pageLeft.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_pageLeft.Image = POS_Client.Properties.Resources.left; btn_pageLeft.Location = new System.Drawing.Point(24, 217); btn_pageLeft.Name = "btn_pageLeft"; btn_pageLeft.Size = new System.Drawing.Size(48, 306); btn_pageLeft.TabIndex = 61; btn_pageLeft.UseVisualStyleBackColor = true; btn_pageLeft.Visible = false; btn_pageRight.FlatAppearance.BorderSize = 0; btn_pageRight.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_pageRight.Image = POS_Client.Properties.Resources.right; btn_pageRight.Location = new System.Drawing.Point(924, 217); btn_pageRight.Name = "btn_pageRight"; btn_pageRight.Size = new System.Drawing.Size(48, 306); btn_pageRight.TabIndex = 62; btn_pageRight.UseVisualStyleBackColor = true; btn_pageRight.Visible = false; btn_cancel.BackColor = System.Drawing.Color.FromArgb(175, 175, 175); btn_cancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btn_cancel.Font = new System.Drawing.Font("微軟正黑體", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); btn_cancel.ForeColor = System.Drawing.Color.White; btn_cancel.Location = new System.Drawing.Point(771, 540); btn_cancel.Name = "btn_cancel"; btn_cancel.Size = new System.Drawing.Size(124, 34); btn_cancel.TabIndex = 63; btn_cancel.TabStop = false; btn_cancel.Text = "關閉"; btn_cancel.UseVisualStyleBackColor = false; btn_cancel.Click += new System.EventHandler(btn_cancel_Click); uC_Member6.AutoSize = true; uC_Member6.BackColor = System.Drawing.Color.White; uC_Member6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; uC_Member6.Cursor = System.Windows.Forms.Cursors.Hand; uC_Member6.Location = new System.Drawing.Point(498, 419); uC_Member6.Margin = new System.Windows.Forms.Padding(0); uC_Member6.Name = "uC_Member6"; uC_Member6.Size = new System.Drawing.Size(398, 102); uC_Member6.TabIndex = 49; uC_Member6.Visible = false; uC_Member5.AutoSize = true; uC_Member5.BackColor = System.Drawing.Color.White; uC_Member5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; uC_Member5.Cursor = System.Windows.Forms.Cursors.Hand; uC_Member5.Location = new System.Drawing.Point(100, 419); uC_Member5.Margin = new System.Windows.Forms.Padding(0); uC_Member5.Name = "uC_Member5"; uC_Member5.Size = new System.Drawing.Size(398, 102); uC_Member5.TabIndex = 48; uC_Member5.Visible = false; uC_Member4.AutoSize = true; uC_Member4.BackColor = System.Drawing.Color.White; uC_Member4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; uC_Member4.Cursor = System.Windows.Forms.Cursors.Hand; uC_Member4.Location = new System.Drawing.Point(498, 319); uC_Member4.Margin = new System.Windows.Forms.Padding(0); uC_Member4.Name = "uC_Member4"; uC_Member4.Size = new System.Drawing.Size(398, 102); uC_Member4.TabIndex = 47; uC_Member4.Visible = false; uC_Member3.AutoSize = true; uC_Member3.BackColor = System.Drawing.Color.White; uC_Member3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; uC_Member3.Cursor = System.Windows.Forms.Cursors.Hand; uC_Member3.Location = new System.Drawing.Point(100, 319); uC_Member3.Margin = new System.Windows.Forms.Padding(0); uC_Member3.Name = "uC_Member3"; uC_Member3.Size = new System.Drawing.Size(398, 102); uC_Member3.TabIndex = 46; uC_Member3.Visible = false; uC_Member2.AutoSize = true; uC_Member2.BackColor = System.Drawing.Color.White; uC_Member2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; uC_Member2.Cursor = System.Windows.Forms.Cursors.Hand; uC_Member2.Location = new System.Drawing.Point(498, 217); uC_Member2.Margin = new System.Windows.Forms.Padding(0); uC_Member2.Name = "uC_Member2"; uC_Member2.Size = new System.Drawing.Size(398, 102); uC_Member2.TabIndex = 45; uC_Member2.Visible = false; uC_Member1.AutoSize = true; uC_Member1.BackColor = System.Drawing.Color.White; uC_Member1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; uC_Member1.Cursor = System.Windows.Forms.Cursors.Hand; uC_Member1.Location = new System.Drawing.Point(100, 217); uC_Member1.Margin = new System.Windows.Forms.Padding(0); uC_Member1.Name = "uC_Member1"; uC_Member1.Size = new System.Drawing.Size(398, 102); uC_Member1.TabIndex = 44; uC_Member1.Visible = false; base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScroll = true; BackColor = System.Drawing.Color.Silver; base.ClientSize = new System.Drawing.Size(997, 631); base.ControlBox = false; base.Controls.Add(btn_cancel); base.Controls.Add(btn_pageRight); base.Controls.Add(btn_pageLeft); base.Controls.Add(l_pageInfo); base.Controls.Add(btn_resetCheck); base.Controls.Add(btn_ChooseEnter); base.Controls.Add(uC_Member6); base.Controls.Add(uC_Member5); base.Controls.Add(uC_Member4); base.Controls.Add(uC_Member3); base.Controls.Add(uC_Member2); base.Controls.Add(uC_Member1); base.Controls.Add(btn_reset); base.Controls.Add(btn_enter); base.Controls.Add(label5); base.Controls.Add(tableLayoutPanel1); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; base.Name = "dialogChooseMember"; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "農委會防檢局POS系統"; tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel1.PerformLayout(); panel2.ResumeLayout(false); panel2.PerformLayout(); panel1.ResumeLayout(false); panel1.PerformLayout(); panel3.ResumeLayout(false); panel3.PerformLayout(); panel4.ResumeLayout(false); panel4.PerformLayout(); ResumeLayout(false); PerformLayout(); }