/// <summary> /// List the methods needed for data initialization /// </summary> private void InitializeData() { _purchaseBillBusiness = new PurchaseBillBusiness(); purchaseBills = _purchaseBillBusiness.GetAll(); DataContext = purchaseBills; ListPurchaseBills.ItemsSource = purchaseBills; }
public EditPurchaseBillUserControl(PurchaseBill purchaseBill) { InitializeComponent(); _purchaseBillBusiness = new PurchaseBillBusiness(); _supplierBusiness = new SupplierBusiness(); this.purchaseBillViewModel = new PurchaseBillViewModel(purchaseBill); InitializeData(); }
public AddPurchaseBillUserControl() { InitializeComponent(); _purchaseBillBusiness = new PurchaseBillBusiness(); _supplierBusiness = new SupplierBusiness(); purchaseBillViewModel = new PurchaseBillViewModel(); this.DataContext = purchaseBillViewModel; InitializeData(); }
public SupplierBusiness() { _supplierRepository = new SupplierRepository(); _productRepository = new ProductRepository(); _purchaseBillBusiness = new PurchaseBillBusiness(); }