Exemplo n.º 1
0
 public MenuPageViewModel(INavigationService navigationService,
                          ITraktUserService traktUserService) : base(navigationService)
 {
     _traktUserService = traktUserService;
     InitMenuItems();
     MenuItemSelectedCommand = new DelegateCommand <MenuItem>(MenuItemSelected);
     GotoAuthCommand         = new DelegateCommand(GotoAuth);
 }
Exemplo n.º 2
0
        public AuthenticationPageViewModel(INavigationService navigationService,
                                           IAuthenticator authenticator,
                                           ITraktUserService userService) : base(navigationService)
        {
            _authenticator = authenticator;
            _userService   = userService;

            LogoutCommand = new DelegateCommand(Logout);
            LoginCommand  = new DelegateCommand(Login);
        }