# Вывод данных согласно макета (ListBox, Image). ### Client.cs ``` using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace WpfApp1.model { [DataContract] public class Client { [DataMember] public string Name { get; set; } [DataMember] public int Age { get; set; } [DataMember] public int Price { get; set; } [DataMember] public string Place { get; set; } [DataMember] public string Category { get; set; } [DataMember] public bool IsActive { get; set; } [DataMember] public string photo { get; set; } [DataMember(Name = "DateFlight")] private string? stringDate { get; set; } public Uri? ImageBitmap { get { var imageName = Environment.CurrentDirectory + "/img/" + (photo ?? ""); return System.IO.File.Exists(imageName) ? new Uri(imageName) : null; } } } } ``` ### data.json ``` [ { "Name": "Никита", "Age": 20, "Price": 2300, "Category": "По России", "Place": "Москва", "IsActive": true, "DateFlight": "2024-12-20", "photo":"2.jpg" }, { "Name": "Маша", "Age": 15, "Price": 5000, "Category": "По России", "Place": "Сочи", "IsActive": false, "DateFlight": "2024-06-14", "photo": "2.jpg" }, { "Name": "Алиса", "Age": 35, "Price": 15000, "Category": "За границей", "Place": "Токио", "IsActive": true, "DateFlight": "2024-05-03", "photo": "2.jpg" }, { "Name": "Леша", "Age": 19, "Price": 20000, "Category": "За границей", "Place": "Южная Корея", "IsActive": false, "DateFlight": "2024-11-18", "photo": "2.jpg" }, { "Name": "Андрей", "Age": 28, "Price": 3000, "Category": "По России", "Place": "Крым", "IsActive": true, "DateFlight": "2024-07-27", "photo": "2.jpg" }, { "Name": "Костя", "Age": 14, "Price": 18000, "Category": "За границей", "Place": "Токио", "IsActive": false, "DateFlight": "2024-08-08", "photo": "2.jpg" }, { "Name": "Даша", "Age": 12, "Price": 25000, "Category": "За границей", "Place": "Лондон", "IsActive": false, "DateFlight": "2025-02-04", "photo": "2.jpg" }, { "Name": "Ольга", "Age": 55, "Price": 22000, "Category": "За границей", "Place": "Люксембург", "IsActive": false, "DateFlight": "2024-09-01", "photo": "2.jpg" }, { "Name": "Катя", "Age": 30, "Price": 1500, "Category": "По России", "Place": "Адлер", "IsActive": true, "DateFlight": "2024-10-31", "photo": "2.jpg" }, { "Name": "Анжела", "Age": 61, "Price": 25000, "Category": "За границей", "Place": "мальдивы", "IsActive": true, "DateFlight": "2025-01-10", "photo": "2.jpg" }, { "Name": "Миша", "Age": 17, "Price": 30000, "Category": "За границей", "Place": "Дубаи", "IsActive": false, "DateFlight": "2024-03-21", "photo": "2.jpg" } ] ``` ### MainWindow.xaml ```