**["Элементы управления"](https://github.com/kolei/OAP/blob/master/articles/exam.md)** *** **C#** *** **Class1** *** ``` using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; namespace WpfApp1.model { public class cars { public string name { get; set; } public int year { get; set; } public int price { get; set; } public List Carsprice { get; set; } public List Namecar { get; set; } } } ``` *** **Class2** *** ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp1.model { class Globals { public static IDataProvider dataProvider; IEnumerable getNamecar() { return new Namecar[] { new Namecar { title = "Toyota Trueno AE8"}, new Namecar { title = "Toyota Supra A80"}, new Namecar { title = "Nissal Skyline R34" }, new Namecar { title = "Nissan Silvia S15"}, new Namecar { title = "Toyota Camry 3.5"}, new Namecar { title = "Audi RS 6" }, new Namecar { title = "Трактор LOVOL TE354 HT"}, new Namecar { title = "BMW M5 F90"}, new Namecar { title = "BMW E36" }, new Namecar { title = "Daewoo Matiz" } }; } IEnumerable getCarsprice() { return new Carsprice[] { new Carsprice{title="Малая цена", priceFrom=0, priceTo=15001}, new Carsprice{title="Средняя цена", priceFrom = 20000, priceTo=35000}, new Carsprice{title="Высокая цена", priceFrom = 35001, priceTo=70000}, }; } } } ``` *** **Class3** *** ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp1.model { public class Carsprice { public string title { get; set; } public int priceFrom { get; set; } public int priceTo { get; set; } } public class Namecar { public string title { get; set; } } } ``` *** **MainWindow.xaml** *** ```