/// <summary> /// Initializes a new instance of the ScoresViewModel class. /// </summary> public ScoreoidViewModel(IExtendedNavigationService navigation, IScoreoidClient scoreoidClient) { _navigationService = navigation; _scoreoidClient = scoreoidClient; if (IsInDesignMode) { CurrentPlayer = new Player { Username = "******", BestScore = 336, Rank = 1 }; } }
public ScoreBoardViewModel(IExtendedNavigationService navigationService, IScoreoidClient scoreoidClient) { _navigationService = navigationService; _scoreoidClient = scoreoidClient; if (IsInDesignMode) { ScoreBoardItems = new ObservableCollection <ScoreWrapper> { new ScoreWrapper { Score = new ScoreItem { Player = new Player { FirstName = "Scott", LastName = "Lovegrove", Username = "******", BestScore = 336, Rank = 1 } }, Rank = 1 }, new ScoreWrapper { Score = new ScoreItem { Player = new Player { FirstName = "Mel", LastName = "Sheppard", Username = "******", BestScore = 335, Rank = 2, } }, Rank = 2 } }; MostRecentScore = 336; } else { ScoreBoardItems = new ObservableCollection <ScoreWrapper>(); } }
/// <summary> /// Initializes a new instance of the UserProfileViewModel class. /// </summary> public UserProfileViewModel(IExtendedNavigationService navigationService, IScoreoidClient scoreoidClient, IPhotoChooserService photoChooserService, IAsyncStorageService asyncStorageService) { _navigationService = navigationService; _scoreoidClient = scoreoidClient; _photoChooserService = photoChooserService; _asyncStorageService = asyncStorageService; if (IsInDesignMode) { CurrentPlayer = new Player { Username = "******", BestScore = 336, Rank = 1 }; } TotalScore = NumberOfGames = 0; }