private void btnTT_Click(object sender, EventArgs e) { pnContainer.Controls.Clear(); ThongTin thongtin = new ThongTin(); pnContainer.Controls.Add(thongtin); }
private void btnTimPhieuNhap_Click(object sender, EventArgs e)//Nút Chuyển Qua Form Quản Lý Nhập Hàng { Form frm = ThongTin.KiemTraTonTai(typeof(FormQuanLyNhapHang), this.ParentForm); if (frm != null) { frm.Activate(); } else { FormQuanLyNhapHang fQLDonHang = new FormQuanLyNhapHang(); fQLDonHang.MdiParent = this.ParentForm; fQLDonHang.Show(); } }
//Chuyển sang quản lý đơn hàng private void btnTimDonHang_Click(object sender, EventArgs e) { Form frm = ThongTin.KiemTraTonTai(typeof(FormQuanLyDonHang), this.ParentForm); if (frm != null) { frm.Activate(); } else { FormQuanLyDonHang fQLDonHang = new FormQuanLyDonHang(); fQLDonHang.MdiParent = this.ParentForm; fQLDonHang.Show(); } }
private void btnTaoMoi_Click(object sender, EventArgs e) { FormNhapHang frm = (FormNhapHang)ThongTin.KiemTraTonTai(typeof(FormNhapHang), this.ParentForm); if (frm != null) { frm.taoMoi = true; frm.Activate(); } else { FormNhapHang fNhapHang = new FormNhapHang(); fNhapHang.taoMoi = true; fNhapHang.MdiParent = this.ParentForm; fNhapHang.Show(); } }
private void btnTaoMoi_Click(object sender, EventArgs e) { Form frm = ThongTin.KiemTraTonTai(typeof(FormXuatHang), this.ParentForm); if (frm != null) { FormXuatHang f = (FormXuatHang)frm; f.Status = 4; f.Activate(); } else { FormXuatHang fQLXuatHang = new FormXuatHang(); fQLXuatHang.MdiParent = this.ParentForm; fQLXuatHang.Show(); } }