public FrmSuaSanPham() { InitializeComponent(); // Initial busDanhMuc = BusDanhMuc.GetInstance(); busHangHoa = BusHangHoa.GetInstance(); }
public static BusHangHoa GetInstance() { if (Instance == null) { Instance = new BusHangHoa(); } return(Instance); }
public FrmThemSanPham() { InitializeComponent(); // Initialize busHangHoa = BusHangHoa.GetInstance(); busDanhMuc = BusDanhMuc.GetInstance(); // Form event this.Load += FrmThemSanPham_Load; }
public FrmHangHoaDanhMuc() { InitializeComponent(); // Initial busDanhMuc = BusDanhMuc.GetInstance(); busHangHoa = BusHangHoa.GetInstance(); // Form event this.Load += FrmHangHoaDanhMuc_Load; }
public FrmSuaDanhMuc() { InitializeComponent(); // Init busDanhMuc = BusDanhMuc.GetInstance(); busHangHoa = BusHangHoa.GetInstance(); // Form event this.Load += FrmSuaDanhMuc_Load; // Button event btnLuu.Click += btnLuu_Click; }
public static BusHangHoa GetInstance() { if (Instance == null) Instance = new BusHangHoa(); return Instance; }