// Inject Cocktail root navigation service public ListPageViewModel(INavigator navigator, IUnitOfWork<Customer> unitOfWork, ErrorHandler errorHandler) { _navigator = navigator; _unitOfWork = unitOfWork; _errorHandler = errorHandler; Busy = new BusyWatcher(); }
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); }
protected PageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler) { Navigator = navigator; UnitOfWork = unitOfWork; ErrorHandler = errorHandler; }
// Inject Cocktail root navigation service public ListPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler) : base(navigator, unitOfWork, errorHandler) { Busy = new BusyWatcher(); }
public DetailPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler) : base(navigator, unitOfWork, errorHandler) { UnitOfWork.EntityChanged += new EventHandler <EntityChangedEventArgs>(UnitOfWorkOnEntityChanged) .MakeWeak(eh => unitOfWork.EntityChanged -= eh); }