public CreateOrderPage(MydbEntities db) { InitializeComponent(); this.db = db; FillAllClients(); FillAllEmployees(); FillProductsDG(); }
public CategoriesPage(MydbEntities db, OSHome commander) { InitializeComponent(); this.db = db; this.commander = commander; categoriesViewSource = ((CollectionViewSource)(FindResource("categoriesViewSource"))); DataContext = this; }
public EmployeesPage(MydbEntities db, OSHome commander) { InitializeComponent(); this.db = db; this.commander = commander; empViewSource = ((CollectionViewSource)(FindResource("employeesViewSource"))); empOrdersViewSource = ((CollectionViewSource)(FindResource("employeesOrdersViewSource"))); DataContext = this; }
public ClientsPage(MydbEntities db, OSHome commander) { InitializeComponent(); this.db = db; this.commander = commander; clientsViewSource = ((CollectionViewSource)(FindResource("clientsViewSource"))); DataContext = this; db.Clients.Load(); clientsViewSource.Source = db.Clients.Local; }
public OSHome() { InitializeComponent(); db = new MydbEntities(); ordersPage = new OrdersPage(db); categoriesPage = new CategoriesPage(db, this); producersPage = new ProducersPage(db, this); productsPage = new ProductsPage(db, this); employeesPage = new EmployeesPage(db, this); clientsPage = new ClientsPage(db, this); }
public OrdersPage(MydbEntities db) { InitializeComponent(); this.db = db; }