예제 #1
0
 // Inject Cocktail root navigation service
 public ListPageViewModel(INavigator navigator, IUnitOfWork<Customer> unitOfWork, ErrorHandler errorHandler)
 {
     _navigator = navigator;
     _unitOfWork = unitOfWork;
     _errorHandler = errorHandler;
     Busy = new BusyWatcher();
 }
예제 #2
0
 public DetailPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler)
 {
     _navigator = navigator;
     _unitOfWork = unitOfWork;
     _errorHandler = errorHandler;
     _unitOfWork.EntityChanged += new EventHandler<EntityChangedEventArgs>(UnitOfWorkOnEntityChanged)
         .MakeWeak(eh => unitOfWork.EntityChanged -= eh);
 }
예제 #3
0
 protected PageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler)
 {
     Navigator = navigator;
     UnitOfWork = unitOfWork;
     ErrorHandler = errorHandler;
 }
예제 #4
0
 // Inject Cocktail root navigation service
 public ListPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler) 
     : base(navigator, unitOfWork, errorHandler)
 {
     Busy = new BusyWatcher();
 }
예제 #5
0
 // Inject Cocktail root navigation service
 public ListPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler)
     : base(navigator, unitOfWork, errorHandler)
 {
     Busy = new BusyWatcher();
 }
예제 #6
0
 public DetailPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler)
     : base(navigator, unitOfWork, errorHandler)
 {
     UnitOfWork.EntityChanged += new EventHandler <EntityChangedEventArgs>(UnitOfWorkOnEntityChanged)
                                 .MakeWeak(eh => unitOfWork.EntityChanged -= eh);
 }