コード例 #1
0
        public EmployeesViewModel(AutoShowDbContext context)
        {
            DisplayName = "Employees";

            _context = context;

            Employees = new CollectionViewSource();
        }
コード例 #2
0
        public OrdersViewModel(IWindowManager windowManager,AutoShowDbContext context)
        {
            DisplayName = "Orders";

            _context = context;
            _windowManager = windowManager;

            Orders = new CollectionViewSource();
        }
コード例 #3
0
        public AddOrderViewModel(AutoShowDbContext context, IAuthenticationService authService)
        {
            DisplayName = "Нове замовлення";

            _context = context;
            _authService = authService;

            Cars = new ObservableCollection<Car>();
            Customers = new CollectionViewSource();
        }
コード例 #4
0
        public CarsViewModel(AutoShowDbContext context)
        {
            DisplayName = "Автомобілі";

            Context = context;
        }
コード例 #5
0
 public AuthenticationService(AutoShowDbContext context)
 {
     _context = context;
 }