public MainViewModel()
        {
            _dbLaundry  = new DbLaundry();
            _unitOfWork = new UnitOfWork(_dbLaundry);

            #region Initialize Commands
            CreateTransactionCommand  = new DelegatingCommand((o) => ToolbarButtonMethod(new CreateTransactionAction(this)));
            TransactionHistoryCommand = new DelegatingCommand((o) => ToolbarButtonMethod(new TransactionHistoryAction(this)));
            ServiceCommand            = new DelegatingCommand((o) => ToolbarButtonMethod(new ServiceAction(this)));
            ShirtCommand = new DelegatingCommand((o) => ToolbarButtonMethod(new ShirtAction(this)));
            RatesCommand = new DelegatingCommand((o) => ToolbarButtonMethod(new RatesAction(this)));
            #endregion
        }
 public ServiceRepository(IDbLaundry dbLaundry) : base(dbLaundry)
 {
 }
Beispiel #3
0
 public BaseViewModelTest()
 {
     _dbLaundry  = new DbLaundryTest();
     _unitOfWork = new UnitOfWork(_dbLaundry);
 }
 public ShirtRepository(IDbLaundry dbLaundry) : base(dbLaundry)
 {
 }
Beispiel #5
0
 public RatesRepository(IDbLaundry dbLaundry) : base(dbLaundry)
 {
 }
Beispiel #6
0
 public UnitOfWork(IDbLaundry dbLaundry)
 {
     _dbLaundry = dbLaundry;
 }
Beispiel #7
0
 public TransactionRepository(IDbLaundry dbLaundry) : base(dbLaundry)
 {
 }
Beispiel #8
0
 public Repository(IDbLaundry context)
 {
     Context = context;
 }