diff --git a/VisEl/KOP.sln b/VisEl/KOP.sln
new file mode 100644
index 0000000..c9dc252
--- /dev/null
+++ b/VisEl/KOP.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32825.248
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisEl", "VisEl\VisEl.csproj", "{471DE73A-592F-45F0-8249-9F6DD539682C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{D173D582-D0AE-45DF-88FC-0DE0A8183E82}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {471DE73A-592F-45F0-8249-9F6DD539682C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {471DE73A-592F-45F0-8249-9F6DD539682C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {471DE73A-592F-45F0-8249-9F6DD539682C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {471DE73A-592F-45F0-8249-9F6DD539682C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D173D582-D0AE-45DF-88FC-0DE0A8183E82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D173D582-D0AE-45DF-88FC-0DE0A8183E82}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D173D582-D0AE-45DF-88FC-0DE0A8183E82}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D173D582-D0AE-45DF-88FC-0DE0A8183E82}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {B0A5CC80-0B00-4A75-A160-2E4A07130019}
+ EndGlobalSection
+EndGlobal
diff --git a/VisEl/Test/App.config b/VisEl/Test/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/VisEl/Test/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VisEl/Test/Form1.Designer.cs b/VisEl/Test/Form1.Designer.cs
new file mode 100644
index 0000000..5373158
--- /dev/null
+++ b/VisEl/Test/Form1.Designer.cs
@@ -0,0 +1,365 @@
+namespace Test
+{
+ partial class Form1
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором форм Windows
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ this.textBoxList = new System.Windows.Forms.TextBox();
+ this.labelList = new System.Windows.Forms.Label();
+ this.labelListEl = new System.Windows.Forms.Label();
+ this.elemetsOfList = new System.Windows.Forms.Label();
+ this.buttonAdd = new System.Windows.Forms.Button();
+ this.LoadInBox = new System.Windows.Forms.Button();
+ this.buttonClear = new System.Windows.Forms.Button();
+ this.textBoxTakeValue = new System.Windows.Forms.TextBox();
+ this.buttonTake = new System.Windows.Forms.Button();
+ this.buttonReplace = new System.Windows.Forms.Button();
+ this.dateTimePicker = new System.Windows.Forms.DateTimePicker();
+ this.buttonTakeTime = new System.Windows.Forms.Button();
+ this.buttonGiveTime = new System.Windows.Forms.Button();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.labelChecked = new System.Windows.Forms.Label();
+ this.buttonStart = new System.Windows.Forms.Button();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.myTreeView1 = new VisEl.MyTreeView();
+ this.myTextBoxDate = new VisEl.MyTextBoxDate();
+ this.newCheckList1 = new VisEl.MyCheckList();
+ this.buttonAddHier = new System.Windows.Forms.Button();
+ this.labelHier = new System.Windows.Forms.Label();
+ this.listBox1 = new System.Windows.Forms.ListBox();
+ this.buttonGen = new System.Windows.Forms.Button();
+ this.buttonTakeNode = new System.Windows.Forms.Button();
+ this.labelNode = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // textBoxList
+ //
+ this.textBoxList.Location = new System.Drawing.Point(492, 12);
+ this.textBoxList.Name = "textBoxList";
+ this.textBoxList.Size = new System.Drawing.Size(261, 22);
+ this.textBoxList.TabIndex = 1;
+ //
+ // labelList
+ //
+ this.labelList.AutoSize = true;
+ this.labelList.Location = new System.Drawing.Point(336, 12);
+ this.labelList.Name = "labelList";
+ this.labelList.Size = new System.Drawing.Size(120, 16);
+ this.labelList.TabIndex = 2;
+ this.labelList.Text = "Создание списка";
+ //
+ // labelListEl
+ //
+ this.labelListEl.AutoSize = true;
+ this.labelListEl.Location = new System.Drawing.Point(336, 94);
+ this.labelListEl.Name = "labelListEl";
+ this.labelListEl.Size = new System.Drawing.Size(83, 16);
+ this.labelListEl.TabIndex = 3;
+ this.labelListEl.Text = "ListElements";
+ //
+ // elemetsOfList
+ //
+ this.elemetsOfList.AutoSize = true;
+ this.elemetsOfList.Location = new System.Drawing.Point(425, 94);
+ this.elemetsOfList.Name = "elemetsOfList";
+ this.elemetsOfList.Size = new System.Drawing.Size(0, 16);
+ this.elemetsOfList.TabIndex = 4;
+ //
+ // buttonAdd
+ //
+ this.buttonAdd.Location = new System.Drawing.Point(492, 55);
+ this.buttonAdd.Name = "buttonAdd";
+ this.buttonAdd.Size = new System.Drawing.Size(145, 23);
+ this.buttonAdd.TabIndex = 5;
+ this.buttonAdd.Text = "Добавить в список";
+ this.buttonAdd.UseVisualStyleBackColor = true;
+ this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
+ //
+ // LoadInBox
+ //
+ this.LoadInBox.Location = new System.Drawing.Point(666, 55);
+ this.LoadInBox.Name = "LoadInBox";
+ this.LoadInBox.Size = new System.Drawing.Size(87, 23);
+ this.LoadInBox.TabIndex = 6;
+ this.LoadInBox.Text = "Загрузить";
+ this.LoadInBox.UseVisualStyleBackColor = true;
+ this.LoadInBox.Click += new System.EventHandler(this.LoadInBox_Click);
+ //
+ // buttonClear
+ //
+ this.buttonClear.Location = new System.Drawing.Point(339, 55);
+ this.buttonClear.Name = "buttonClear";
+ this.buttonClear.Size = new System.Drawing.Size(120, 23);
+ this.buttonClear.TabIndex = 7;
+ this.buttonClear.Text = "Очистить";
+ this.buttonClear.UseVisualStyleBackColor = true;
+ this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
+ //
+ // textBoxTakeValue
+ //
+ this.textBoxTakeValue.Location = new System.Drawing.Point(339, 147);
+ this.textBoxTakeValue.Name = "textBoxTakeValue";
+ this.textBoxTakeValue.Size = new System.Drawing.Size(321, 22);
+ this.textBoxTakeValue.TabIndex = 8;
+ //
+ // buttonTake
+ //
+ this.buttonTake.Location = new System.Drawing.Point(339, 193);
+ this.buttonTake.Name = "buttonTake";
+ this.buttonTake.Size = new System.Drawing.Size(75, 23);
+ this.buttonTake.TabIndex = 9;
+ this.buttonTake.Text = "Взять";
+ this.buttonTake.UseVisualStyleBackColor = true;
+ this.buttonTake.Click += new System.EventHandler(this.buttonTake_Click);
+ //
+ // buttonReplace
+ //
+ this.buttonReplace.Location = new System.Drawing.Point(461, 192);
+ this.buttonReplace.Name = "buttonReplace";
+ this.buttonReplace.Size = new System.Drawing.Size(92, 23);
+ this.buttonReplace.TabIndex = 10;
+ this.buttonReplace.Text = "Пяоменять";
+ this.buttonReplace.UseVisualStyleBackColor = true;
+ this.buttonReplace.Click += new System.EventHandler(this.buttonReplace_Click);
+ //
+ // dateTimePicker
+ //
+ this.dateTimePicker.Location = new System.Drawing.Point(428, 321);
+ this.dateTimePicker.Name = "dateTimePicker";
+ this.dateTimePicker.Size = new System.Drawing.Size(200, 22);
+ this.dateTimePicker.TabIndex = 12;
+ //
+ // buttonTakeTime
+ //
+ this.buttonTakeTime.Location = new System.Drawing.Point(701, 286);
+ this.buttonTakeTime.Name = "buttonTakeTime";
+ this.buttonTakeTime.Size = new System.Drawing.Size(75, 23);
+ this.buttonTakeTime.TabIndex = 13;
+ this.buttonTakeTime.Text = "Взять";
+ this.buttonTakeTime.UseVisualStyleBackColor = true;
+ this.buttonTakeTime.Click += new System.EventHandler(this.buttonTakeTime_Click);
+ //
+ // buttonGiveTime
+ //
+ this.buttonGiveTime.Location = new System.Drawing.Point(428, 358);
+ this.buttonGiveTime.Name = "buttonGiveTime";
+ this.buttonGiveTime.Size = new System.Drawing.Size(75, 23);
+ this.buttonGiveTime.TabIndex = 14;
+ this.buttonGiveTime.Text = "Загрузить";
+ this.buttonGiveTime.UseVisualStyleBackColor = true;
+ this.buttonGiveTime.Click += new System.EventHandler(this.buttonGiveTime_Click);
+ //
+ // labelTitle
+ //
+ this.labelTitle.AutoSize = true;
+ this.labelTitle.Location = new System.Drawing.Point(428, 286);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(88, 16);
+ this.labelTitle.TabIndex = 15;
+ this.labelTitle.Text = "Вы выбрали:";
+ //
+ // labelChecked
+ //
+ this.labelChecked.AutoSize = true;
+ this.labelChecked.Location = new System.Drawing.Point(508, 285);
+ this.labelChecked.Name = "labelChecked";
+ this.labelChecked.Size = new System.Drawing.Size(0, 16);
+ this.labelChecked.TabIndex = 16;
+ //
+ // buttonStart
+ //
+ this.buttonStart.Location = new System.Drawing.Point(684, 743);
+ this.buttonStart.Name = "buttonStart";
+ this.buttonStart.Size = new System.Drawing.Size(75, 23);
+ this.buttonStart.TabIndex = 18;
+ this.buttonStart.Text = "Поехали";
+ this.buttonStart.UseVisualStyleBackColor = true;
+ this.buttonStart.Click += new System.EventHandler(this.buttonGO_Click);
+ //
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Location = new System.Drawing.Point(525, 412);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(121, 24);
+ this.comboBox1.TabIndex = 19;
+ //
+ // myTreeView1
+ //
+ this.myTreeView1.AutoSize = true;
+ this.myTreeView1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.myTreeView1.BackColor = System.Drawing.SystemColors.ControlDark;
+ this.myTreeView1.Location = new System.Drawing.Point(12, 412);
+ this.myTreeView1.Name = "myTreeView1";
+ this.myTreeView1.Size = new System.Drawing.Size(427, 403);
+ this.myTreeView1.TabIndex = 17;
+ //
+ // myTextBoxDate
+ //
+ this.myTextBoxDate.DateMaximum = new System.DateTime(2025, 12, 31, 0, 0, 0, 0);
+ this.myTextBoxDate.DateMinimum = new System.DateTime(2000, 1, 1, 0, 0, 0, 0);
+ this.myTextBoxDate.Location = new System.Drawing.Point(31, 286);
+ this.myTextBoxDate.Name = "myTextBoxDate";
+ this.myTextBoxDate.Size = new System.Drawing.Size(316, 150);
+ this.myTextBoxDate.TabIndex = 11;
+ this.myTextBoxDate.Value = "13.09.2023";
+ //
+ // newCheckList1
+ //
+ this.newCheckList1.AutoSize = true;
+ this.newCheckList1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.newCheckList1.BackColor = System.Drawing.SystemColors.ActiveBorder;
+ this.newCheckList1.Location = new System.Drawing.Point(31, 12);
+ this.newCheckList1.Name = "newCheckList1";
+ this.newCheckList1.selectedValue = "";
+ this.newCheckList1.Size = new System.Drawing.Size(285, 248);
+ this.newCheckList1.TabIndex = 0;
+ //
+ // buttonAddHier
+ //
+ this.buttonAddHier.Location = new System.Drawing.Point(678, 412);
+ this.buttonAddHier.Name = "buttonAddHier";
+ this.buttonAddHier.Size = new System.Drawing.Size(75, 23);
+ this.buttonAddHier.TabIndex = 20;
+ this.buttonAddHier.Text = "Добавить";
+ this.buttonAddHier.UseVisualStyleBackColor = true;
+ this.buttonAddHier.Click += new System.EventHandler(this.buttonAddHier_Click);
+ //
+ // labelHier
+ //
+ this.labelHier.AutoSize = true;
+ this.labelHier.Location = new System.Drawing.Point(446, 460);
+ this.labelHier.Name = "labelHier";
+ this.labelHier.Size = new System.Drawing.Size(0, 16);
+ this.labelHier.TabIndex = 21;
+ //
+ // listBox1
+ //
+ this.listBox1.FormattingEnabled = true;
+ this.listBox1.ItemHeight = 16;
+ this.listBox1.Location = new System.Drawing.Point(517, 477);
+ this.listBox1.Name = "listBox1";
+ this.listBox1.Size = new System.Drawing.Size(242, 260);
+ this.listBox1.TabIndex = 22;
+ //
+ // buttonGen
+ //
+ this.buttonGen.Location = new System.Drawing.Point(678, 448);
+ this.buttonGen.Name = "buttonGen";
+ this.buttonGen.Size = new System.Drawing.Size(75, 23);
+ this.buttonGen.TabIndex = 23;
+ this.buttonGen.Text = "Генерир";
+ this.buttonGen.UseVisualStyleBackColor = true;
+ this.buttonGen.Click += new System.EventHandler(this.buttonGen_Click);
+ //
+ // buttonTakeNode
+ //
+ this.buttonTakeNode.Location = new System.Drawing.Point(511, 743);
+ this.buttonTakeNode.Name = "buttonTakeNode";
+ this.buttonTakeNode.Size = new System.Drawing.Size(75, 23);
+ this.buttonTakeNode.TabIndex = 24;
+ this.buttonTakeNode.Text = "Достать";
+ this.buttonTakeNode.UseVisualStyleBackColor = true;
+ this.buttonTakeNode.Click += new System.EventHandler(this.buttonTakeNode_Click);
+ //
+ // labelNode
+ //
+ this.labelNode.AutoSize = true;
+ this.labelNode.Location = new System.Drawing.Point(514, 778);
+ this.labelNode.Name = "labelNode";
+ this.labelNode.Size = new System.Drawing.Size(0, 16);
+ this.labelNode.TabIndex = 25;
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 867);
+ this.Controls.Add(this.labelNode);
+ this.Controls.Add(this.buttonTakeNode);
+ this.Controls.Add(this.buttonGen);
+ this.Controls.Add(this.listBox1);
+ this.Controls.Add(this.labelHier);
+ this.Controls.Add(this.buttonAddHier);
+ this.Controls.Add(this.comboBox1);
+ this.Controls.Add(this.buttonStart);
+ this.Controls.Add(this.myTreeView1);
+ this.Controls.Add(this.labelChecked);
+ this.Controls.Add(this.labelTitle);
+ this.Controls.Add(this.buttonGiveTime);
+ this.Controls.Add(this.buttonTakeTime);
+ this.Controls.Add(this.dateTimePicker);
+ this.Controls.Add(this.myTextBoxDate);
+ this.Controls.Add(this.buttonReplace);
+ this.Controls.Add(this.buttonTake);
+ this.Controls.Add(this.textBoxTakeValue);
+ this.Controls.Add(this.buttonClear);
+ this.Controls.Add(this.LoadInBox);
+ this.Controls.Add(this.buttonAdd);
+ this.Controls.Add(this.elemetsOfList);
+ this.Controls.Add(this.labelListEl);
+ this.Controls.Add(this.labelList);
+ this.Controls.Add(this.textBoxList);
+ this.Controls.Add(this.newCheckList1);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private VisEl.MyCheckList newCheckList1;
+ private System.Windows.Forms.TextBox textBoxList;
+ private System.Windows.Forms.Label labelList;
+ private System.Windows.Forms.Label labelListEl;
+ private System.Windows.Forms.Label elemetsOfList;
+ private System.Windows.Forms.Button buttonAdd;
+ private System.Windows.Forms.Button LoadInBox;
+ private System.Windows.Forms.Button buttonClear;
+ private System.Windows.Forms.TextBox textBoxTakeValue;
+ private System.Windows.Forms.Button buttonTake;
+ private System.Windows.Forms.Button buttonReplace;
+ private VisEl.MyTextBoxDate myTextBoxDate;
+ private System.Windows.Forms.DateTimePicker dateTimePicker;
+ private System.Windows.Forms.Button buttonTakeTime;
+ private System.Windows.Forms.Button buttonGiveTime;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Label labelChecked;
+ private VisEl.MyTreeView myTreeView1;
+ private System.Windows.Forms.Button buttonStart;
+ private System.Windows.Forms.ComboBox comboBox1;
+ private System.Windows.Forms.Button buttonAddHier;
+ private System.Windows.Forms.Label labelHier;
+ private System.Windows.Forms.ListBox listBox1;
+ private System.Windows.Forms.Button buttonGen;
+ private System.Windows.Forms.Button buttonTakeNode;
+ private System.Windows.Forms.Label labelNode;
+ }
+}
+
diff --git a/VisEl/Test/Form1.cs b/VisEl/Test/Form1.cs
new file mode 100644
index 0000000..186f706
--- /dev/null
+++ b/VisEl/Test/Form1.cs
@@ -0,0 +1,112 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Management.Instrumentation;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using TestLib;
+using VisEl;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+
+namespace Test
+{
+ public partial class Form1 : Form
+ {
+ List ordersToAdd = new List();
+ List stringToHierachy = new List();
+ List sportsmens = new List();
+ string[] names = {"Vova M","Sasha A","Dima D", "Danila L" };
+ string[] sports = { "Run", "Swim", "Cycle", "Race", "Box" };
+ string[] cities = { "Moskow", "Samara", "Piter", "Kazan", "Kyrsk" };
+ string[] countries = { "Russia", "Spain", "China", "India", "Brazil" };
+ string[] rewards = { "#1", "#2", "KMS", "Olymp", "MS" };
+
+ public Form1()
+ {
+ InitializeComponent();
+ comboBox1.Items.AddRange(typeof(Sportsmen).GetFields().Select(x => x.Name).ToArray());
+ comboBox1.Items.AddRange(typeof(Sportsmen).GetProperties().Select(x => x.Name).ToArray());
+ }
+
+ private void buttonAdd_Click(object sender, EventArgs e)
+ {
+ if (textBoxList.Text is null || textBoxList.Text.Length == 0) return;
+ ordersToAdd.Add(textBoxList.Text);
+ elemetsOfList.Text += textBoxList.Text + ", ";
+ textBoxList.Text = "";
+ }
+
+ private void LoadInBox_Click(object sender, EventArgs e)
+ {
+ newCheckList1.LoadValues(ordersToAdd);
+ ordersToAdd.Clear();
+ elemetsOfList.Text = "";
+ }
+
+ private void buttonClear_Click(object sender, EventArgs e)
+ {
+ newCheckList1.RemoveAll();
+ }
+
+ private void buttonTake_Click(object sender, EventArgs e)
+ {
+ textBoxTakeValue.Text = newCheckList1.selectedValue;
+ }
+
+ private void buttonReplace_Click(object sender, EventArgs e)
+ {
+ newCheckList1.selectedValue = textBoxTakeValue.Text;
+ }
+
+ private void buttonTakeTime_Click(object sender, EventArgs e)
+ {
+ labelChecked.Text = myTextBoxDate.Value;
+ }
+
+ private void buttonGiveTime_Click(object sender, EventArgs e)
+ {
+ myTextBoxDate.Value = dateTimePicker.Value.ToString();
+ }
+
+ private void buttonGO_Click(object sender, EventArgs e)
+ {
+ foreach(string step in stringToHierachy)
+ myTreeView1.addToHierarchy(step, false);
+
+ myTreeView1.LoadTree(sportsmens);
+ labelHier.Text = "";
+ stringToHierachy.Clear();
+ sportsmens.Clear();
+ }
+
+ private void buttonAddHier_Click(object sender, EventArgs e)
+ {
+ if(stringToHierachy.Contains(comboBox1.SelectedItem))
+ return;
+ stringToHierachy.Add(comboBox1.SelectedItem.ToString());
+ labelHier.Text += " " + comboBox1.SelectedItem.ToString();
+ }
+
+ private void buttonGen_Click(object sender, EventArgs e)
+ {
+ sportsmens.Clear();
+ listBox1.Items.Clear();
+ Random rn = new Random();
+ for(int i = 0; i < 10; i++)
+ {
+ Sportsmen sm = new Sportsmen(names[rn.Next(0, 4)], sports[rn.Next(0, 5)], cities[rn.Next(0, 5)], countries[rn.Next(0, 5)], rewards[rn.Next(0, 5)]);
+ sportsmens.Add(sm);
+ listBox1.Items.Add($"{sm.name} {sm.sport} {sm.country} {sm.city} {sm.awards}");
+ }
+ }
+
+ private void buttonTakeNode_Click(object sender, EventArgs e)
+ {
+ labelNode.Text = myTreeView1.GetNode();
+ }
+ }
+}
diff --git a/VisEl/Test/Form1.resx b/VisEl/Test/Form1.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/VisEl/Test/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/VisEl/Test/Program.cs b/VisEl/Test/Program.cs
new file mode 100644
index 0000000..1ef7000
--- /dev/null
+++ b/VisEl/Test/Program.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+namespace Test
+{
+ internal static class Program
+ {
+ ///
+ /// Главная точка входа для приложения.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+}
diff --git a/VisEl/Test/Properties/AssemblyInfo.cs b/VisEl/Test/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..badfe69
--- /dev/null
+++ b/VisEl/Test/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
+// связанных со сборкой.
+[assembly: AssemblyTitle("Test")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Test")]
+[assembly: AssemblyCopyright("Copyright © 2023")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// COM, следует установить атрибут ComVisible в TRUE для этого типа.
+[assembly: ComVisible(false)]
+
+// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
+[assembly: Guid("d173d582-d0ae-45df-88fc-0de0a8183e82")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+// Основной номер версии
+// Дополнительный номер версии
+// Номер сборки
+// Редакция
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/VisEl/Test/Properties/Resources.Designer.cs b/VisEl/Test/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..fd90ad5
--- /dev/null
+++ b/VisEl/Test/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программным средством.
+// Версия среды выполнения: 4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+// код создан повторно.
+//
+//------------------------------------------------------------------------------
+
+namespace Test.Properties
+{
+
+
+ ///
+ /// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+ ///
+ // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
+ // класс с помощью таких средств, как ResGen или Visual Studio.
+ // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
+ // с параметром /str или заново постройте свой VS-проект.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Переопределяет свойство CurrentUICulture текущего потока для всех
+ /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/VisEl/Test/Properties/Resources.resx b/VisEl/Test/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/VisEl/Test/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/VisEl/Test/Properties/Settings.Designer.cs b/VisEl/Test/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..a8cf573
--- /dev/null
+++ b/VisEl/Test/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Test.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/VisEl/Test/Properties/Settings.settings b/VisEl/Test/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/VisEl/Test/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/VisEl/Test/Test.csproj b/VisEl/Test/Test.csproj
new file mode 100644
index 0000000..3fbac2b
--- /dev/null
+++ b/VisEl/Test/Test.csproj
@@ -0,0 +1,93 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {D173D582-D0AE-45DF-88FC-0DE0A8183E82}
+ WinExe
+ Test
+ Test
+ v4.7.2
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+
+ Form1.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
+ {471DE73A-592F-45F0-8249-9F6DD539682C}
+ VisEl
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VisEl/Test/TestClasses/Sportsmen.cs b/VisEl/Test/TestClasses/Sportsmen.cs
new file mode 100644
index 0000000..94fcd3c
--- /dev/null
+++ b/VisEl/Test/TestClasses/Sportsmen.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestLib
+{
+ public class Sportsmen
+ {
+ public string name;
+ public string sport;
+ public string city;
+ public string country;
+ public string Region { get { return city; } set { city = value; } }
+ public string awards;
+ public Sportsmen(string name, string sport, string city, string country, string awards)
+ {
+ this.name = name;
+ this.sport = sport;
+ this.city = city;
+ this.country = country;
+ this.awards = awards;
+ }
+ }
+}
diff --git a/VisEl/TestLib/Car.cs b/VisEl/TestLib/Car.cs
new file mode 100644
index 0000000..a476ba9
--- /dev/null
+++ b/VisEl/TestLib/Car.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security.Cryptography.X509Certificates;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestLib
+{
+ public class Car
+ {
+ string model;
+ string Model { get { return model; } set { model = value; } }
+ string year;
+ string color;
+ public Car(string model, string year, string color)
+ {
+ this.model = model;
+ this.year = year;
+ this.color = color;
+ }
+ }
+}
diff --git a/VisEl/TestLib/Employer.cs b/VisEl/TestLib/Employer.cs
new file mode 100644
index 0000000..d869b7d
--- /dev/null
+++ b/VisEl/TestLib/Employer.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestLib
+{
+ public class Employer
+ {
+ string name;
+ string proffesion;
+ string office;
+ public Employer(string name, string proffesion, string office)
+ {
+ this.name = name;
+ this.proffesion = proffesion;
+ this.office = office;
+ }
+ }
+}
diff --git a/VisEl/TestLib/Sportsmen.cs b/VisEl/TestLib/Sportsmen.cs
new file mode 100644
index 0000000..a358b76
--- /dev/null
+++ b/VisEl/TestLib/Sportsmen.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestLib
+{
+ public class Sportsmen
+ {
+ string name;
+ string sport;
+ string city;
+ string country;
+ string Region { get { return city; } set { city = value; } }
+ int awards;
+ public Sportsmen(string name, string sport, string city, string country, int awards)
+ {
+ this.name = name;
+ this.sport = sport;
+ this.city = city;
+ this.country = country;
+ this.awards = awards;
+ }
+ }
+}
diff --git a/VisEl/TestLib/TestLib.csproj b/VisEl/TestLib/TestLib.csproj
new file mode 100644
index 0000000..132c02c
--- /dev/null
+++ b/VisEl/TestLib/TestLib.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net6.0
+ enable
+ enable
+
+
+
diff --git a/VisEl/VisEl/MyCheckList.Designer.cs b/VisEl/VisEl/MyCheckList.Designer.cs
new file mode 100644
index 0000000..d72e52c
--- /dev/null
+++ b/VisEl/VisEl/MyCheckList.Designer.cs
@@ -0,0 +1,65 @@
+using System.Drawing;
+
+namespace VisEl
+{
+ partial class MyCheckList
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором компонентов
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ this.checkedList = new System.Windows.Forms.CheckedListBox();
+ this.SuspendLayout();
+ //
+ // checkedList
+ //
+ this.checkedList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(200)))), ((int)(((byte)(246)))));
+ this.checkedList.FormattingEnabled = true;
+ this.checkedList.HorizontalScrollbar = true;
+ this.checkedList.Location = new System.Drawing.Point(3, 3);
+ this.checkedList.Name = "checkedList";
+ this.checkedList.Size = new System.Drawing.Size(279, 242);
+ this.checkedList.TabIndex = 0;
+ this.checkedList.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.checkedList_ItemCheck);
+ //
+ // MyCheckList
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.AutoSize = true;
+ this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.BackColor = Color.FromArgb(0,0,0);
+ this.Controls.Add(this.checkedList);
+ this.Name = "MyCheckList";
+ this.Size = new System.Drawing.Size(285, 248);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.CheckedListBox checkedList;
+ }
+}
diff --git a/VisEl/VisEl/MyCheckList.cs b/VisEl/VisEl/MyCheckList.cs
new file mode 100644
index 0000000..76a8f8e
--- /dev/null
+++ b/VisEl/VisEl/MyCheckList.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace VisEl
+{
+ public partial class MyCheckList : UserControl
+ {
+ public MyCheckList()
+ {
+ InitializeComponent();
+ }
+ public void LoadValues(List Values)
+ {
+ checkedList.Items.AddRange(Values.ToArray());
+ }
+ public void RemoveAll()
+ {
+ checkedList.Items.Clear();
+ }
+ public string selectedValue {
+ get
+ {
+ if(checkedList.SelectedItem is null)
+ return "";
+ else
+ return checkedList.SelectedItem.ToString();
+ }
+ set {
+ if (checkedList.SelectedItem is null)
+ return;
+ checkedList.Items[checkedList.SelectedIndex] = value;
+ }
+ }
+
+ private void checkedList_ItemCheck(object sender, ItemCheckEventArgs e)
+ {
+ Random rn = new Random();
+ checkedList.BackColor = Color.FromArgb(rn.Next(0,255), rn.Next(0, 255), rn.Next(0, 255));
+ }
+ }
+}
diff --git a/VisEl/VisEl/MyCheckList.resx b/VisEl/VisEl/MyCheckList.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/VisEl/VisEl/MyCheckList.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/VisEl/VisEl/MyTextBoxDate.Designer.cs b/VisEl/VisEl/MyTextBoxDate.Designer.cs
new file mode 100644
index 0000000..1a7082c
--- /dev/null
+++ b/VisEl/VisEl/MyTextBoxDate.Designer.cs
@@ -0,0 +1,107 @@
+namespace VisEl
+{
+ partial class MyTextBoxDate
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором компонентов
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ this.dateTimePicker = new System.Windows.Forms.DateTimePicker();
+ this.labelEr = new System.Windows.Forms.Label();
+ this.labelMin = new System.Windows.Forms.Label();
+ this.labelMax = new System.Windows.Forms.Label();
+ this.panel = new System.Windows.Forms.Panel();
+ this.panel.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // dateTimePicker
+ //
+ this.dateTimePicker.Location = new System.Drawing.Point(12, 22);
+ this.dateTimePicker.MaxDate = new System.DateTime(9998, 12, 3, 0, 0, 0, 0);
+ this.dateTimePicker.MinDate = new System.DateTime(1753, 1, 2, 0, 0, 0, 0);
+ this.dateTimePicker.Name = "dateTimePicker";
+ this.dateTimePicker.Size = new System.Drawing.Size(200, 22);
+ this.dateTimePicker.TabIndex = 0;
+ this.dateTimePicker.ValueChanged += new System.EventHandler(this.dateTimePicker_ValueChanged);
+ //
+ // labelEr
+ //
+ this.labelEr.AutoSize = true;
+ this.labelEr.Location = new System.Drawing.Point(27, 105);
+ this.labelEr.Name = "labelEr";
+ this.labelEr.Size = new System.Drawing.Size(0, 16);
+ this.labelEr.TabIndex = 1;
+ //
+ // labelMin
+ //
+ this.labelMin.AutoSize = true;
+ this.labelMin.Location = new System.Drawing.Point(27, 0);
+ this.labelMin.Name = "labelMin";
+ this.labelMin.Size = new System.Drawing.Size(28, 16);
+ this.labelMin.TabIndex = 2;
+ this.labelMin.Text = "Min";
+ //
+ // labelMax
+ //
+ this.labelMax.AutoSize = true;
+ this.labelMax.Location = new System.Drawing.Point(186, 0);
+ this.labelMax.Name = "labelMax";
+ this.labelMax.Size = new System.Drawing.Size(32, 16);
+ this.labelMax.TabIndex = 3;
+ this.labelMax.Text = "Max";
+ //
+ // panel
+ //
+ this.panel.Controls.Add(this.dateTimePicker);
+ this.panel.Location = new System.Drawing.Point(30, 19);
+ this.panel.Name = "panel";
+ this.panel.Size = new System.Drawing.Size(226, 72);
+ this.panel.TabIndex = 4;
+ //
+ // MyTextBoxDate
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panel);
+ this.Controls.Add(this.labelMax);
+ this.Controls.Add(this.labelMin);
+ this.Controls.Add(this.labelEr);
+ this.Name = "MyTextBoxDate";
+ this.Size = new System.Drawing.Size(316, 150);
+ this.panel.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.DateTimePicker dateTimePicker;
+ private System.Windows.Forms.Label labelEr;
+ private System.Windows.Forms.Label labelMin;
+ private System.Windows.Forms.Label labelMax;
+ private System.Windows.Forms.Panel panel;
+ }
+}
diff --git a/VisEl/VisEl/MyTextBoxDate.cs b/VisEl/VisEl/MyTextBoxDate.cs
new file mode 100644
index 0000000..87372b4
--- /dev/null
+++ b/VisEl/VisEl/MyTextBoxDate.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace VisEl
+{
+ public partial class MyTextBoxDate : UserControl
+ {
+ public DateTime DateMin = new DateTime(1999, 1, 1);
+ public DateTime DateMax = new DateTime(2025, 12, 31);
+ public MyTextBoxDate()
+ {
+ InitializeComponent();
+ labelMin.Text = DateMin.ToShortDateString();
+ labelMax.Text = DateMax.ToShortDateString();
+ }
+ public DateTime DateMaximum {
+ get { return DateMax; }
+ set {
+ DateMax = value;
+ labelMax.Text = DateMax.ToString();
+ }
+ }
+ public DateTime DateMinimum
+ {
+ get { return DateMin; }
+ set
+ {
+ DateMin = value;
+ labelMin.Text = DateMin.ToString();
+ }
+ }
+ public string Value
+ {
+ get
+ {
+ if (dateTimePicker.Value > DateMax || dateTimePicker.Value < DateMin)
+ {
+ labelEr.ForeColor = Color.Red;
+ labelEr.Text = "Ошибка: Выход за допустимые пределы!!!";
+ return null; }
+ labelEr.Text = "";
+ return dateTimePicker.Value.ToShortDateString();
+ }
+ set
+ {
+ if (DateTime.Parse(value) > DateMax || DateTime.Parse(value) < DateMin) return;
+ dateTimePicker.Value = DateTime.Parse(value);
+ }
+ }
+
+ private void dateTimePicker_ValueChanged(object sender, EventArgs e)
+ {
+ if (dateTimePicker.Value >= DateMinimum && dateTimePicker.Value <= DateMaximum) panel.BackColor = Color.LightBlue;
+ else panel.BackColor = Color.Red;
+ }
+ }
+}
diff --git a/VisEl/VisEl/MyTextBoxDate.resx b/VisEl/VisEl/MyTextBoxDate.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/VisEl/VisEl/MyTextBoxDate.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/VisEl/VisEl/MyTreeView.Designer.cs b/VisEl/VisEl/MyTreeView.Designer.cs
new file mode 100644
index 0000000..1c59ee0
--- /dev/null
+++ b/VisEl/VisEl/MyTreeView.Designer.cs
@@ -0,0 +1,59 @@
+namespace VisEl
+{
+ partial class MyTreeView
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором компонентов
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ this.treeView = new System.Windows.Forms.TreeView();
+ this.SuspendLayout();
+ //
+ // treeView
+ //
+ this.treeView.Location = new System.Drawing.Point(3, 3);
+ this.treeView.Name = "treeView";
+ this.treeView.Size = new System.Drawing.Size(421, 397);
+ this.treeView.TabIndex = 0;
+ //
+ // MyTreeView
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.AutoSize = true;
+ this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.BackColor = System.Drawing.SystemColors.ControlDark;
+ this.Controls.Add(this.treeView);
+ this.Name = "MyTreeView";
+ this.Size = new System.Drawing.Size(427, 403);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TreeView treeView;
+ }
+}
diff --git a/VisEl/VisEl/MyTreeView.cs b/VisEl/VisEl/MyTreeView.cs
new file mode 100644
index 0000000..1f6b80c
--- /dev/null
+++ b/VisEl/VisEl/MyTreeView.cs
@@ -0,0 +1,106 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace VisEl
+{
+
+ public partial class MyTreeView : UserControl
+ {
+ List<(string, bool)> hierarchy = new List<(string, bool)>();
+ public MyTreeView()
+ {
+ InitializeComponent();
+ }
+ public void addToHierarchy(string member , bool isolation) { hierarchy.Add((member, isolation)); }
+ public int GetId
+ {
+ get { return treeView.SelectedNode.Index; }
+
+ }
+ public string GetNode()
+ {
+ if (treeView.SelectedNode.FirstNode == null)
+ return treeView.SelectedNode.Text.ToString();
+ return null;
+ }
+ public void LoadTree(List nodes)
+ {
+ treeView.Nodes.Clear();
+ foreach (T node in nodes)
+ {
+ TreeNode parent = null;
+ Type type = node.GetType();
+ foreach((string, bool) step in hierarchy)
+ {
+ var aa = type.GetFields();
+ if (type.GetField(step.Item1) != null || type.GetProperty(step.Item1) != null)
+ {
+ var value = type.GetField(step.Item1) == null ? type.GetProperty(step.Item1).GetValue(node) : type.GetField(step.Item1).GetValue(node);
+ TreeNode[] nodesLevel;
+
+ if (parent == null)
+ {
+ if (step.Item2)
+ {
+ TreeNode newNode = new TreeNode(value.ToString());
+ newNode.Name = step.Item1;
+ treeView.Nodes.Add(newNode);
+ parent = newNode;
+ continue;
+ }
+ nodesLevel = treeView.Nodes.Find(step.Item1, false);
+ TreeNode currentNode = nodesLevel.FirstOrDefault(x => x.Text.Equals(value));
+ if (currentNode is null)
+ {
+ TreeNode newNode = new TreeNode(value.ToString());
+ newNode.Name = step.Item1;
+ treeView.Nodes.Add(newNode);
+ parent = newNode;
+ }else
+ {
+ parent = currentNode;
+ continue;
+ }
+ }
+ else
+ {
+ if (step.Item2)
+ {
+ TreeNode newNode = new TreeNode(value.ToString());
+ newNode.Name = step.Item1;
+ parent.Nodes.Add(newNode);
+ parent = newNode;
+ continue;
+ }
+ nodesLevel = parent.Nodes.Find(step.Item1, false);
+ TreeNode currentNode = nodesLevel.FirstOrDefault(x => x.Text.Equals(value));
+ if (currentNode is null)
+ {
+ TreeNode newNode = new TreeNode(value.ToString());
+ newNode.Name = step.Item1;
+ parent.Nodes.Add(newNode);
+ parent = newNode;
+ }else
+ {
+ parent = currentNode;
+ continue;
+ }
+ }
+
+ }
+ else break;
+
+
+ }
+ }
+ }
+ }
+}
diff --git a/VisEl/VisEl/MyTreeView.resx b/VisEl/VisEl/MyTreeView.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/VisEl/VisEl/MyTreeView.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/VisEl/VisEl/Properties/AssemblyInfo.cs b/VisEl/VisEl/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..d24f103
--- /dev/null
+++ b/VisEl/VisEl/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
+// связанные со сборкой.
+[assembly: AssemblyTitle("VisEl")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("VisEl")]
+[assembly: AssemblyCopyright("Copyright © 2023")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// компонента COM, задайте для атрибута ComVisible этого типа значение TRUE.
+[assembly: ComVisible(false)]
+
+// Следующий идентификатор GUID представляет идентификатор typelib, если этот проект доступен через COM
+[assembly: Guid("471de73a-592f-45f0-8249-9f6dd539682c")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+// Основной номер версии
+// Дополнительный номер версии
+// Номер сборки
+// Номер редакции
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/VisEl/VisEl/VisEl.csproj b/VisEl/VisEl/VisEl.csproj
new file mode 100644
index 0000000..10a7eb4
--- /dev/null
+++ b/VisEl/VisEl/VisEl.csproj
@@ -0,0 +1,78 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {471DE73A-592F-45F0-8249-9F6DD539682C}
+ Library
+ VisEl
+ VisEl
+ v4.7.2
+ 512
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UserControl
+
+
+ MyTextBoxDate.cs
+
+
+ UserControl
+
+
+ MyTreeView.cs
+
+
+
+ UserControl
+
+
+ MyCheckList.cs
+
+
+
+
+
+ MyCheckList.cs
+
+
+ MyTextBoxDate.cs
+
+
+ MyTreeView.cs
+
+
+
+
\ No newline at end of file