public void Draw(HeroViewModel hero)
 {
     BorderBackground.ImageSource = ImageUtils.GetImageSourceFromPath(hero.BorderImageSource);
     HeroId.Tag = hero.Id;
     ProfileImage.Source = ImageUtils.GetImageSourceFromPath(hero.ProfileImageSource);
     OrbImage.Source = ImageUtils.GetImageSourceFromPath(hero.OrbImageSource);
 }
        private static HeroViewModel PopulateValuesOnHeroVM(Hero hero)
        {
            var heroVM = new HeroViewModel();
            heroVM.ProfileImageSource = "/" + hero.ProfileImagePath;
            heroVM.OrbImageSource = "/" + ImageUtils.GetOrbImagePathFromType(hero.Type);
            heroVM.BorderImageSource = "/" + ImageUtils.GetProfileBorderImagePathFromType(hero.Type);
            heroVM.Id = hero.Id.ToString();

            return heroVM;
        }
        public static HeroViewModel[] GetHeroViewModels(Hero[] heroes)
        {
            var heroViewModels = new HeroViewModel[heroes.Length];

            for (int i = 0; i < heroViewModels.Length; i++)
            {
                heroViewModels[i] = GetHeroViewModel(heroes[i]);
            }

            return heroViewModels;
        }
        public static HeroViewModel GetHeroViewModel(Hero hero)
        {
            var heroVM = new HeroViewModel();

            if (hero != null)
            {
                heroVM = PopulateValuesOnHeroVM(hero);
            }

            return heroVM;
        }