Пример #1
0
 //Mở frmTextKhachHang qua Lối Tắt từ Form Đặt Phòng
 public frmTextKhachHang(frmDatPhong fdph, string title)
 {
     InitializeComponent();
     isShortCutCreate = true;
     this.Text        = "Thêm Khách Hàng";
     Lb_TitleName     = title;
     KieuForm         = 1;
     this.Size        = new Size(664, 389);
     frmDPh           = fdph;
 }
Пример #2
0
        private void open_frmDatPhong()
        {
            this.pnl_SubForm.Controls.Clear();

            frmDatPhong fdp = new frmDatPhong(Id_nhanvien);

            fdp.FormBorderStyle = FormBorderStyle.None;
            fdp.TopLevel        = false;
            fdp.Dock            = DockStyle.Fill;
            fdp.ShowInTaskbar   = false;
            fdp.Show();

            this.pnl_SubForm.Controls.Add(fdp);
        }