public ProfileViewModel(Profile Profile)
     : base(Profile.Id)
 {
     this.DefaultColor = Profile.DefaultColor;
     this.PlayersViewModel = new Collection<PlayerViewModel>();
     foreach(var player in Profile.PlayerAccounts)
     {
         this.PlayersViewModel.Add(new PlayerViewModel(player));
     }
 }
Пример #2
0
 public Player(Profile Profile)
     : base()
 {
     this.Color = Profile.DefaultColor;
     this.Score = 0;
 }