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) { }
public BaseViewModelTest() { _dbLaundry = new DbLaundryTest(); _unitOfWork = new UnitOfWork(_dbLaundry); }
public ShirtRepository(IDbLaundry dbLaundry) : base(dbLaundry) { }
public RatesRepository(IDbLaundry dbLaundry) : base(dbLaundry) { }
public UnitOfWork(IDbLaundry dbLaundry) { _dbLaundry = dbLaundry; }
public TransactionRepository(IDbLaundry dbLaundry) : base(dbLaundry) { }
public Repository(IDbLaundry context) { Context = context; }