public FrmSearchProduct(FrmDanhMucSanPham frmParent) { InitializeComponent(); productManager = new ProductManager(); productNameManager = new ProductNameManager(); categoryManager = new CategoryManager(); unitManager = new UnitManager(); countryManager = new CountryManager(); manufacturerManager = new ManufacturerManager(); productStatusManager = new ProductStatusManager(); this.frmParent = frmParent; }
private void tsmiDanhMucSanPham_Click(object sender, EventArgs e) { if (DanhMucSanPham == null || DanhMucSanPham.IsDisposed) { DanhMucSanPham = new FrmDanhMucSanPham(); DanhMucSanPham.MdiParent = this; DanhMucSanPham.Show(); } DanhMucSanPham.BringToFront(); }