Ejemplo n.º 1
0
 public void LoadTournamentPage()
 {
     if (_loggedInUserModel.Id != null)
     {
         ActivateItem(_tournamentVM);
         _tournamentVM = _container.GetInstance <TournamentViewModel>();
     }
     else
     {
         ActivateItem(_loginVM);
     }
 }
Ejemplo n.º 2
0
        public ShellViewModel(IEventAggregator events, LoginViewModel loginVM, MasterViewModel masterVM,
                              TournamentViewModel tournamentVM, UserViewModel userVM, TrackViewModel trackVM, MessageViewModel messageVM,
                              RegisterViewModel registerVM, SimpleContainer container, ILoggedInUserModel loggedInUserModel, IAPIHelper apiHelper)
        {
            _events            = events;
            _container         = container;
            _masterVM          = masterVM;
            _loginVM           = loginVM;
            _tournamentVM      = tournamentVM;
            _trackVM           = trackVM;
            _messageVM         = messageVM;
            _userVM            = userVM;
            _registerVM        = registerVM;
            _loggedInUserModel = loggedInUserModel;
            _apiHelper         = apiHelper;

            _events.Subscribe(this);
            ActivateItem(_container.GetInstance <LoginViewModel>());
        }