예제 #1
0
        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;
        }
예제 #2
0
 private void tsmiDanhMucSanPham_Click(object sender, EventArgs e)
 {
     if (DanhMucSanPham == null || DanhMucSanPham.IsDisposed)
     {
         DanhMucSanPham = new FrmDanhMucSanPham();
         DanhMucSanPham.MdiParent = this;
         DanhMucSanPham.Show();
     }
     DanhMucSanPham.BringToFront();
 }