Ejemplo n.º 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();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 protected PageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler)
 {
     Navigator = navigator;
     UnitOfWork = unitOfWork;
     ErrorHandler = errorHandler;
 }
Ejemplo n.º 4
0
 // Inject Cocktail root navigation service
 public ListPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler) 
     : base(navigator, unitOfWork, errorHandler)
 {
     Busy = new BusyWatcher();
 }
Ejemplo n.º 5
0
 // Inject Cocktail root navigation service
 public ListPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler)
     : base(navigator, unitOfWork, errorHandler)
 {
     Busy = new BusyWatcher();
 }
Ejemplo n.º 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);
 }