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;
 }
示例#3
0
 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;
 }