From f18561f0c733f29b7702e3a8a722a5fb859234a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=91=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D1=81=D0=BA=D0=B0=D1=8F?= Date: Fri, 18 Oct 2024 09:27:41 +0400 Subject: [PATCH] =?UTF-8?q?4=20=D0=BB=D0=B0=D0=B1=D0=B0=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=B0=20=D0=B8=203=20=D1=81=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=B0,=20=D0=B2=D1=81=D0=B5=20=D0=BF=D0=BE=D0=B4=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab4/Form1.cs | 18 ++++-- miakd/animals.xsd | 149 ++++++++++++++++++++++++++++++++++------------ 2 files changed, 123 insertions(+), 44 deletions(-) diff --git a/lab4/Form1.cs b/lab4/Form1.cs index 7cc0899..ad70947 100644 --- a/lab4/Form1.cs +++ b/lab4/Form1.cs @@ -6,7 +6,14 @@ namespace lab4 { InitializeComponent(); //comboBoxFormats.Items.AddRange(new string[] { " ", " ", " ", " ", " " }); - comboBoxFormats.Items.AddRange(new string[] { "F", "d", "D", "T", "Y" }); + comboBoxFormats.Items.AddRange(new string[] { "F", "d", "D", "T", "Y", "t" }); + + // F - + // d - , + // D - + // T - , + // Y - + // t - } private void dateTimePicker_ValueChanged(object sender, EventArgs e) @@ -78,18 +85,17 @@ namespace lab4 private void btnToDate_Click(object sender, EventArgs e) { - if(textBox1.Text != null) + if (textBox1.Text != null) { - string dateStr = textBox1.Text; + string dateStr = textBox1.Text; try { DateTime date = DateTime.Parse(dateStr); dateTimePicker4.Value = date; } - catch (Exception) + catch (Exception ex) { - - throw; + MessageBox.Show($" - ... : {ex.Message}"); } } } diff --git a/miakd/animals.xsd b/miakd/animals.xsd index 8cd229a..91ff929 100644 --- a/miakd/animals.xsd +++ b/miakd/animals.xsd @@ -1,44 +1,117 @@  - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +