public fm_PhieuDatHang() { InitializeComponent(); uc_phieuDatHang uc = new uc_phieuDatHang(); this.Controls.Add(uc); }
public frmKhoHang() { InitializeComponent(); GUI.KhoHang.NguyenLieuTon.uc_traCuuNguyenLieuTon uc_NL = new GUI.KhoHang.NguyenLieuTon.uc_traCuuNguyenLieuTon(); uc_NL.Dock = DockStyle.Fill; tab_NL.AttachedControl.Controls.Add(uc_NL); GUI.KhoHang.NhaCungCap.uc_traCuuNCC uc_NCC = new GUI.KhoHang.NhaCungCap.uc_traCuuNCC(); uc_NCC.Dock = DockStyle.Fill; tab_NCC.AttachedControl.Controls.Add(uc_NCC); GUI.KhoHang.NguyenLieuTon.uc_phieuDatHang uc_phieuDatHang = new GUI.KhoHang.NguyenLieuTon.uc_phieuDatHang(); uc_phieuDatHang.Dock = DockStyle.Fill; tab_nguyenLieuCanNhap.AttachedControl.Controls.Add(uc_phieuDatHang); GUI.KhoHang.NguyenLieuTon.uc_nhapHangDotXuat uc_nhapHangDotXuat = new GUI.KhoHang.NguyenLieuTon.uc_nhapHangDotXuat(); uc_nhapHangDotXuat.Dock = DockStyle.Fill; tab_nhapHangDotXuat.AttachedControl.Controls.Add(uc_nhapHangDotXuat); GUI.KhoHang.NhaCungCap.uc_nccToiHanCanThanhToan uc_nccToiHanCanThanhToan = new GUI.KhoHang.NhaCungCap.uc_nccToiHanCanThanhToan(); uc_nccToiHanCanThanhToan.Dock = DockStyle.Fill; tab_noToiHanThanhToan.AttachedControl.Controls.Add(uc_nccToiHanCanThanhToan); main_tab_KhoHang.BackColor = Color.Black; }