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) { serviceClient = _serviceClient; RegisterUserCommand = new RelayCommand(() => ExecuteRegisterUserCommand(), () => IsValidDetails()); BackCommand = new RelayCommand(() => ExecuteBackCommand()); }
public LoginViewModel(ITreasureHuntService _serviceClient) { serviceClient = _serviceClient; LoginUserCommand = new RelayCommand(() => ExecuteLoginUserCommand(), () => IsValidDetails()); RegisterCommand = new RelayCommand(() => ExecuteRegisterCommand()); }
public RegisterViewModel(ITreasureHuntService _serviceClient) { serviceClient = _serviceClient; RegisterUserCommand = new RelayCommand(() => ExecuteRegisterUserCommand(), () => IsValidDetails()); BackCommand = new RelayCommand(() => ExecuteBackCommand()); }
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) ); }
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(); }
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) ); }
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(); }
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) { 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(); }
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) ); }
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) ); }
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) ); }
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) ); }