Ejemplo n.º 1
0
        public void AddTeamMember(int slotToAddHero, string idOfHeroToAdd)
        {
            var heroGuid = new Guid(idOfHeroToAdd);
            var heroToAdd = _heroRepository.GetHeroesOwnedByPlayer().Single(h => h.Id == heroGuid);

            var teamMemberToAdd = new TeamMember(slotToAddHero, heroToAdd);
            TeamMembers.Add(teamMemberToAdd);
        }
 private void AddTeamMember(TeamMember teamMemeber, Grid grid)
 {
     var heroProfile = new HeroProfile();
         heroProfile.DrawHeroProfile(teamMemeber.ThisHero);
         grid.Children.Add(heroProfile);
         heroProfile.SetValue(Grid.RowProperty, 0);
         heroProfile.SetValue(Grid.ColumnProperty, teamMemeber.Slot*2);
         //heroProfile.Tap += OnSelectHero;
 }