using Avalonia.Controls; using System; using System.Data; using Avalonia.Interactivity; using System.IO; using System.Collections.Generic; using System.Linq; namespace AvaloniaApplication3 { // Структура для хранения возраста struct Age { public int Years; public int Months; public int Days; public DayOfWeek BirthDayOfWeek; public int BirthdaysOnSameWeekday; public List LeapYears; } public partial class MainWindow : Window { private DatePicker dp; private TextBlock zodiacTextBlock; private TextBlock chineseZodiacTextBlock; public MainWindow() { InitializeComponent(); dp = this.FindControl("DatePicker"); var button = this.FindControl