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