//Kiểu Form //1: là form thêm khách hàng //2: là form sửa khách hàng public frmTextKhachHang(frmQLKhachHang fql, string title) { InitializeComponent(); this.Text = "Thêm Khách Hàng"; Lb_TitleName = title; KieuForm = 1; this.Size = new Size(664, 389); frmQLKH = fql; }
public frmTextKhachHang(frmQLKhachHang fql, string title, KhachHang_Ent kh) { InitializeComponent(); Lb_TitleName = title; this.Text = "Sửa Khách Hàng"; this.khach = kh; KieuForm = 2; this.Size = new Size(664, 389); frmQLKH = fql; }
private void open_frmQuanLyKhachHang() { this.pnl_SubForm.Controls.Clear(); frmQLKhachHang fqlkh = new frmQLKhachHang(); fqlkh.FormBorderStyle = FormBorderStyle.None; fqlkh.TopLevel = false; fqlkh.Dock = DockStyle.Fill; fqlkh.ShowInTaskbar = false; fqlkh.Show(); this.pnl_SubForm.Controls.Add(fqlkh); }