예제 #1
0
        public LoginPageViewModel(IPageNavigator pageNavigator,
                                  ILogger logger,
                                  IUserDialogs userDialogs,
                                  IRequestExceptionHandler requestExceptionHandler,
                                  IAzurePushNotification azurePushNotification,
                                  IAuthManager authManager,
                                  IAppUserManager appUserManager) : base(pageNavigator, logger, userDialogs, requestExceptionHandler)
        {
            _azurePushNotification = azurePushNotification;
            _authManager           = authManager;
            _appUserManager        = appUserManager;

            LoginCommand = new DelegateCommand(async() => await OnLogin(), () => OnLoginCanExecute())
                           .ObservesProperty(() => AgentId)
                           .ObservesProperty(() => BadgeCode);
        }
예제 #2
0
        public MainMasterDetailPageViewModel(INavigationService navigationService,
                                             IPageNavigator pageNavigator,
                                             IUserDialogs userDialogs,
                                             IEventAggregator eventAggregator,
                                             IAzurePushNotification azurePushNotification,
                                             IAppManager appManager,
                                             IAppUserManager appUserManager) : base(navigationService, pageNavigator, userDialogs, eventAggregator)
        {
            _azurePushNotification = azurePushNotification;
            _appManager            = appManager;
            _appUserManager        = appUserManager;

            AccountCommmand       = new DelegateCommand(async() => await OnAccount());
            CustomersCommand      = new DelegateCommand(async() => await OnCustomers());
            PurchaseOrdersCommand = new DelegateCommand(async() => await OnPurchaseOrders());
            LogoutCommand         = new DelegateCommand(async() => await OnLogout());
        }