// Inject Cocktail root navigation service public ListPageViewModel(INavigator navigator, IUnitOfWork<Customer> unitOfWork, ErrorHandler errorHandler) { _navigator = navigator; _unitOfWork = unitOfWork; _errorHandler = errorHandler; Busy = new BusyWatcher(); }
public LoginViewModel(IAuthenticationService authenticationService, IDialogManager dialogManager, [Import(AllowDefault = true)] IGlobalCache globalCache) { Busy = new BusyWatcher(); _authenticationService = authenticationService; _dialogManager = dialogManager; _globalCache = globalCache; // ReSharper disable DoNotCallOverridableMethodsInConstructor DisplayName = ""; // ReSharper restore DoNotCallOverridableMethodsInConstructor #if DEBUG _username = "******"; _password = "******"; #endif }
// Inject Cocktail root navigation service public ListPageViewModel(INavigator navigator, ICustomerUnitOfWork unitOfWork, ErrorHandler errorHandler) : base(navigator, unitOfWork, errorHandler) { Busy = new BusyWatcher(); }