private void GenerateContents() { this.Contents = new ObservableCollection <IFitnessContent>(); IFitnessContent loginScreenViewModel = new LoginScreenViewModel(); this.Contents.Add(loginScreenViewModel); this.SelectedContent = this.Contents.First(); }
public void SetUserToProfile(User user) { UserProfileViewModel userProfileViewModel = new UserProfileViewModel(); userProfileViewModel.User = user; this.Contents.Add(userProfileViewModel); this.selectedContent = this.Contents.Last(); this.Contents.Remove(this.Contents.First()); addHeader(userProfileViewModel.Header); SetAdminToProfile(user); }