public SearchHuntViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient          = serviceClient;
            SearchHuntCommand           = new RelayCommand(() => ExecuteSearchHuntCommand(), () => IsValidHunt());
            CreateNewHuntCommand        = new RelayCommand(() => ExecuteCreateHuntCommand());
            LogoutCommand               = new RelayCommand(() => ExecuteLogoutCommand());
            ResetCompanyPasswordCommand = new RelayCommand(() => ExecuteResetCompanyPasswordCommand());
            RefreshTreasureHunts();

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register <ViewUpdatedMessage>
            (

                this,
                (action) => ReceiveViewUpdatedMessage(action.UpdatedView)

            );

            Messenger.Default.Register <CurrentUserMessage>
            (

                this,
                (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );

            PopupDisplayed = false;
        }
Пример #2
0
        public RegisterViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;

            RegisterUserCommand = new RelayCommand(() => ExecuteRegisterUserCommand(), () => IsValidDetails());
            BackCommand         = new RelayCommand(() => ExecuteBackCommand());
        }
Пример #3
0
        public LoginViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;

            LoginUserCommand = new RelayCommand(() => ExecuteLoginUserCommand(), () => IsValidDetails());
            RegisterCommand  = new RelayCommand(() => ExecuteRegisterCommand());
        }
Пример #4
0
        public RegisterViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;

            RegisterUserCommand = new RelayCommand(() => ExecuteRegisterUserCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());
        }
Пример #5
0
        public LoginViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;

            LoginUserCommand = new RelayCommand(() => ExecuteLoginUserCommand(), () => IsValidDetails());
            RegisterCommand = new RelayCommand(() => ExecuteRegisterCommand());

        }
        public RetrieveEmailViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;

            CheckEmailAddressCommand = new RelayCommand(() => ExecuteCheckEmailAddressCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            PopupDisplayed = false;
        }
        public LoginViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;

            LoginUserCommand = new RelayCommand(() => ExecuteLoginUserCommand(), () => IsValidDetails());
            RegisterCommand = new RelayCommand(() => ExecuteRegisterCommand());
            ForgotPasswordCommand = new RelayCommand(() => ExecuteForgotPasswordCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            PopupDisplayed = false;
        }
        public RetrieveEmailViewModel(ITreasureHuntService serviceClient)
         {
            this.serviceClient = serviceClient;

            CheckEmailAddressCommand = new RelayCommand(() => ExecuteCheckEmailAddressCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            PopupDisplayed = false;
       
         }
        public LoginViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;

            LoginUserCommand      = new RelayCommand(() => ExecuteLoginUserCommand(), () => IsValidDetails());
            RegisterCommand       = new RelayCommand(() => ExecuteRegisterCommand());
            ForgotPasswordCommand = new RelayCommand(() => ExecuteForgotPasswordCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            PopupDisplayed = false;
        }
        public CreateHuntViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;
            SaveHuntNameCommand = new RelayCommand(() => ExecuteSaveHuntNameCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());
            LogoutCommand = new RelayCommand(() => ExecuteLogoutCommand());


            Messenger.Default.Register<CurrentUserMessage>
            (

            this,
            (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );
        }
Пример #11
0
        public CreateHuntViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient       = _serviceClient;
            SaveHuntNameCommand = new RelayCommand(() => ExecuteSaveHuntNameCommand(), () => IsValidDetails());
            BackCommand         = new RelayCommand(() => ExecuteBackCommand());
            LogoutCommand       = new RelayCommand(() => ExecuteLogoutCommand());


            Messenger.Default.Register <CurrentUserMessage>
            (

                this,
                (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );
        }
        public ResetCompanyPasswordViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient          = serviceClient;
            ResetCompanyPasswordCommand = new RelayCommand(() => ExecuteResetCompanyPasswordCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register <CurrentUserMessage>
            (

                this,
                (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );
        }
        public LeaderboardViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;
            BackCommand = new RelayCommand(() => ExecuteBackCommand());
            RefreshCommand = new RelayCommand(() => RefreshLeaderboard());
            LogoutCommand = new RelayCommand(() => ExecuteLogoutCommand());

            Messenger.Default.Register<LeaderboardMessage>
             (

                 this,
                 (action) => ReceiveLeaderboardMessage(action.CurrentHunt)

             );

            RefreshLeaderboard();    
        }
        public LeaderboardViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient  = _serviceClient;
            BackCommand    = new RelayCommand(() => ExecuteBackCommand());
            RefreshCommand = new RelayCommand(() => RefreshLeaderboard());
            LogoutCommand  = new RelayCommand(() => ExecuteLogoutCommand());

            Messenger.Default.Register <LeaderboardMessage>
            (

                this,
                (action) => ReceiveLeaderboardMessage(action.CurrentHunt)

            );

            RefreshLeaderboard();
        }
Пример #15
0
        public CreateHuntViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;
            SaveHuntCommand    = new RelayCommand(() => ExecuteSaveCommand(), () => IsValidDetails());
            BackCommand        = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register <CurrentUserMessage>
            (

                this,
                (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );

            PopupDisplayed = false;
        }
        public ViewHuntViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient  = serviceClient;
            SaveQuestionCommand = new RelayCommand(() => ExecuteSaveQuestionCommand(), () => IsValidNewQuestion());
            PrintQRCodesCommand = new RelayCommand(() => ExecutePrintQRCodesCommand(), () => IsValidListOfQuestions());
            BackCommand         = new RelayCommand(() => ExecuteBackCommand());
            LeaderboardCommand  = new RelayCommand(() => ExecuteLeaderboardCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register <SelectedHuntMessage>
            (

                this,
                (action) => ReceiveSelectedHuntMessage(action.CurrentHunt)

            );
        }
Пример #17
0
        public ViewHuntViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient       = _serviceClient;
            SaveQuestionCommand = new RelayCommand(() => ExecuteSaveQuestionCommand(), () => IsValidNewQuestion());
            PrintQRCodesCommand = new RelayCommand(() => ExecutePrintQRCodesCommand(), () => IsValidListOfQuestions());
            BackCommand         = new RelayCommand(() => ExecuteBackCommand());
            LeaderboardCommand  = new RelayCommand(() => ExecuteLeaderboardCommand());
            LogoutCommand       = new RelayCommand(() => ExecuteLogoutCommand());

            Messenger.Default.Register <SelectedHuntMessage>
            (

                this,
                (action) => ReceiveSelectedHuntMessage(action.CurrentHunt)

            );

            RefreshQuestions();
        }
Пример #18
0
        public RegisterViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;

            RegisterUserCommand = new RelayCommand(() => ExecuteRegisterUserCommand(), () => IsValidDetails());
            BackCommand         = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register <RegenerateListMessage>
            (

                this,
                (action) => ReceiveRegenerateListMessage(action.RegenerateList)

            );

            PopupDisplayed = false;
        }
Пример #19
0
        public ViewHuntViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;
            SaveQuestionCommand = new RelayCommand(() => ExecuteSaveQuestionCommand(), () => IsValidNewQuestion());
            PrintQRCodesCommand = new RelayCommand(() => ExecutePrintQRCodesCommand(), () => IsValidListOfQuestions());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());
            LeaderboardCommand = new RelayCommand(() => ExecuteLeaderboardCommand());
            LogoutCommand = new RelayCommand(() => ExecuteLogoutCommand());
            
             Messenger.Default.Register<SelectedHuntMessage>
             (

             this,
             (action) => ReceiveSelectedHuntMessage(action.CurrentHunt)

             );

             RefreshQuestions();
        }
Пример #20
0
        public PrintViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;
            BackCommand   = new RelayCommand(() => ExecuteBackQuestionCommand());

            Messenger.Default.Register <PrintMessage>
            (

                this,
                (action) => ReceivePrintMessage(action.FileLocation)
            );

            Messenger.Default.Register <SelectedHuntMessage>
            (

                this,
                (action) => ReceiveSelectedHuntMessage(action.CurrentHunt)
            );
        }
Пример #21
0
        public PrintViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;
            BackCommand = new RelayCommand(() => ExecuteBackQuestionCommand());

            Messenger.Default.Register<PrintMessage>
             (

             this,
             (action) => ReceivePrintMessage(action.FileLocation)
             );

            Messenger.Default.Register<SelectedHuntMessage>
             (

             this,
             (action) => ReceiveSelectedHuntMessage(action.CurrentHunt)
             );
        }
Пример #22
0
        public LeaderboardViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;
            BackCommand        = new RelayCommand(() => ExecuteBackCommand());
            RefreshCommand     = new RelayCommand(() => RefreshLeaderboard());

            PopupDisplayed = false;

            Messenger.Default.Register <LeaderboardMessage>
            (

                this,
                (action) => ReceiveLeaderboardMessage(action.CurrentHunt)

            );

            connectionChecker = InternetConnectionChecker.GetInstance();

            RefreshLeaderboard();
        }
        public SearchHuntViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient = _serviceClient;
            SearchHuntCommand = new RelayCommand(() => ExecuteSearchHuntCommand(), () => IsValidHunt());
            CreateNewHuntCommand = new RelayCommand(() => ExecuteCreateHuntCommand());
            LogoutCommand = new RelayCommand(() => ExecuteLogoutCommand());
            RefreshTreasureHunts();

            Messenger.Default.Register<ViewUpdatedMessage>
             (

             this,
             (action) => ReceiveViewUpdatedMessage(action.UpdatedView)

             );

            Messenger.Default.Register<CurrentUserMessage>
           (

           this,
           (action) => ReceiveCurrentUserMessage(action.CurrentUser)

           );
        }
Пример #24
0
        public SearchHuntViewModel(ITreasureHuntService _serviceClient)
        {
            serviceClient        = _serviceClient;
            SearchHuntCommand    = new RelayCommand(() => ExecuteSearchHuntCommand(), () => IsValidHunt());
            CreateNewHuntCommand = new RelayCommand(() => ExecuteCreateHuntCommand());
            LogoutCommand        = new RelayCommand(() => ExecuteLogoutCommand());
            RefreshTreasureHunts();

            Messenger.Default.Register <ViewUpdatedMessage>
            (

                this,
                (action) => ReceiveViewUpdatedMessage(action.UpdatedView)

            );

            Messenger.Default.Register <CurrentUserMessage>
            (

                this,
                (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );
        }
        public LeaderboardViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;
            BackCommand = new RelayCommand(() => ExecuteBackCommand());
            RefreshCommand = new RelayCommand(() => RefreshLeaderboard());

            PopupDisplayed = false;

            Messenger.Default.Register<LeaderboardMessage>
             (

                 this,
                 (action) => ReceiveLeaderboardMessage(action.CurrentHunt)

             );

            connectionChecker = InternetConnectionChecker.GetInstance();

            RefreshLeaderboard();
        }
        public ResetPasswordViewModel(ITreasureHuntService serviceClient)
         {
            this.serviceClient = serviceClient;

            ResetPasswordCommand = new RelayCommand(() => ExecutePasswordResetCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register<CurrentUserMessage>
            (

            this,
            (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );
         }
        public CreateHuntViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;
            SaveHuntCommand = new RelayCommand(() => ExecuteSaveCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register<CurrentUserMessage>
            (

            this,
            (action) => ReceiveCurrentUserMessage(action.CurrentUser)

            );

            PopupDisplayed = false;
        }
        public SearchHuntViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;
            SearchHuntCommand = new RelayCommand(() => ExecuteSearchHuntCommand(), () => IsValidHunt());
            CreateNewHuntCommand = new RelayCommand(() => ExecuteCreateHuntCommand());
            LogoutCommand = new RelayCommand(() => ExecuteLogoutCommand());
            ResetCompanyPasswordCommand = new RelayCommand(() => ExecuteResetCompanyPasswordCommand());
            RefreshTreasureHunts();

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register<ViewUpdatedMessage>
             (

             this,
             (action) => ReceiveViewUpdatedMessage(action.UpdatedView)

             );

            Messenger.Default.Register<CurrentUserMessage>
           (

           this,
           (action) => ReceiveCurrentUserMessage(action.CurrentUser)

           );

           PopupDisplayed = false;
        }
        public RegisterViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;

            RegisterUserCommand = new RelayCommand(() => ExecuteRegisterUserCommand(), () => IsValidDetails());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register<RegenerateListMessage>
                (

                this,
                (action) => ReceiveRegenerateListMessage(action.RegenerateList)

                );

            PopupDisplayed = false;
        }
        public ViewHuntViewModel(ITreasureHuntService serviceClient)
        {
            this.serviceClient = serviceClient;
            SaveQuestionCommand = new RelayCommand(() => ExecuteSaveQuestionCommand(), () => IsValidNewQuestion());
            PrintQRCodesCommand = new RelayCommand(() => ExecutePrintQRCodesCommand(), () => IsValidListOfQuestions());
            BackCommand = new RelayCommand(() => ExecuteBackCommand());
            LeaderboardCommand = new RelayCommand(() => ExecuteLeaderboardCommand());

            connectionChecker = InternetConnectionChecker.GetInstance();

            Messenger.Default.Register<SelectedHuntMessage>
            (

            this,
            (action) => ReceiveSelectedHuntMessage(action.CurrentHunt)

            );
        }