public SaleMgr() { InitializeComponent(); DataContext = this; _context.Sales.Load(); DbCtxtMgr = _context; SaleDataGrid.ItemsSource = _context.Sales.Local; }
public ProductMgr() { InitializeComponent(); DataContext = this; _context.Products.Load(); DbCtxtMgr = _context; ProductDataGrid.ItemsSource = _context.Products.Local; }
public CustomerMgr() { InitializeComponent(); DataContext = this; _context.Customers.Load(); DbCtxtMgr = _context; CustomerDataGrid.ItemsSource = _context.Customers.Local; }