Exemplo n.º 1
0
        public EmployeesViewModel(AutoShowDbContext context)
        {
            DisplayName = "Employees";

            _context = context;

            Employees = new CollectionViewSource();
        }
Exemplo n.º 2
0
        public OrdersViewModel(IWindowManager windowManager,AutoShowDbContext context)
        {
            DisplayName = "Orders";

            _context = context;
            _windowManager = windowManager;

            Orders = new CollectionViewSource();
        }
Exemplo n.º 3
0
        public AddOrderViewModel(AutoShowDbContext context, IAuthenticationService authService)
        {
            DisplayName = "Нове замовлення";

            _context = context;
            _authService = authService;

            Cars = new ObservableCollection<Car>();
            Customers = new CollectionViewSource();
        }
Exemplo n.º 4
0
        public CarsViewModel(AutoShowDbContext context)
        {
            DisplayName = "Автомобілі";

            Context = context;
        }
 public AuthenticationService(AutoShowDbContext context)
 {
     _context = context;
 }