## Каркас приложения. Модель данных. Привязка данных. Табличный вывод. #### Вот что у меня получчилось, по моей предметной области `class1` ``` using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static WpfApp2.model.Globals; using System.Threading.Tasks; namespace WpfApp2.model { public class Hero { public string name { get; set; } public int Age { get; set; } public string power { get; set; } public string race { get; set; } public List HeroPowerList { get; set; } public List HeroAgeList { get; set; } public List HeroRaceList { get; set; } } } ``` `class2` ``` using System.Collections.Generic; using System.Linq; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading.Tasks; namespace WpfApp2.model { class Globals { public static IDataProvider dataProvider; IEnumerable getHeroPower() { return new HeroPower[] { new HeroPower { title = "1/10"}, new HeroPower { title = "2/10"}, new HeroPower { title = "3/10"}, new HeroPower { title = "4/10"}, new HeroPower { title = "5/10"}, new HeroPower { title = "6/10"}, new HeroPower { title = "7/10"}, new HeroPower { title = "8/10"}, new HeroPower { title = "9/10"}, new HeroPower { title = "10/10"} }; } IEnumerable getHeroAges() { return new HeroAge[] { new HeroAge{title="Все возраста", AgeFrom=0, AgeTo=2000}, new HeroAge{title="Дети", AgeFrom=1, AgeTo=100}, new HeroAge{title="Подростки", AgeFrom=100, AgeTo = 500}, new HeroAge{title="Мужчины", AgeFrom=500, AgeTo=700}, new HeroAge{title="Старики", AgeFrom=700, AgeTo=200} }; } IEnumerable getHeroRace() { return new HeroRace[] { new HeroRace { title = "Человек"}, new HeroRace { title = "Огр"}, new HeroRace { title = "Дракон"}, new HeroRace { title = "Гоблин"}, new HeroRace { title = "Фея"}, new HeroRace { title = "Камень"}, new HeroRace { title = "Рыба"}, new HeroRace { title = "Селёдка"} }; } } } ``` `class3` ``` using System; using System.Collections.Generic; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp2.model { public class HeroPower { public string title { get; set; } } public class HeroAge { public string title { get; set; } public int AgeFrom { get; set; } public int AgeTo { get; set; } } public class HeroRace { public string title { get; set; } public string RaceFrom { get; set; } public string RaceTo { get; set; } } } ``` `Mainwindow.xaml` ```