WinForm_And_Data
Changes
.gitignore 4(+4 -0)
WinForm_And_Data/WinForm_And_Data.sln 25(+25 -0)
WinForm_And_Data/WinForm_And_Data/Form1.cs 96(+96 -0)
WinForm_And_Data/WinForm_And_Data/Form1.Designer.cs 328(+328 -0)
WinForm_And_Data/WinForm_And_Data/Form1.resx 120(+120 -0)
WinForm_And_Data/WinForm_And_Data/Program.cs 22(+22 -0)
Details
.gitignore 4(+4 -0)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5940018
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+WinForm_And_Data/.vs/WinForm_And_Data/v15/Server/
+
+WinForm_And_Data/WinForm_And_Data/bin/
+WinForm_And_Data/WinForm_And_Data/obj/
diff --git a/WinForm_And_Data/.vs/WinForm_And_Data/v15/.suo b/WinForm_And_Data/.vs/WinForm_And_Data/v15/.suo
new file mode 100644
index 0000000..cdd4f9a
Binary files /dev/null and b/WinForm_And_Data/.vs/WinForm_And_Data/v15/.suo differ
WinForm_And_Data/WinForm_And_Data.sln 25(+25 -0)
diff --git a/WinForm_And_Data/WinForm_And_Data.sln b/WinForm_And_Data/WinForm_And_Data.sln
new file mode 100644
index 0000000..730a53c
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28010.2036
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinForm_And_Data", "WinForm_And_Data\WinForm_And_Data.csproj", "{89405A8D-FE12-41ED-B68D-C3A5DB94E95E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {89405A8D-FE12-41ED-B68D-C3A5DB94E95E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {89405A8D-FE12-41ED-B68D-C3A5DB94E95E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {89405A8D-FE12-41ED-B68D-C3A5DB94E95E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {89405A8D-FE12-41ED-B68D-C3A5DB94E95E}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {C509B953-6757-42CD-822C-7409BEF8CC6E}
+ EndGlobalSection
+EndGlobal
diff --git a/WinForm_And_Data/WinForm_And_Data/App.config b/WinForm_And_Data/WinForm_And_Data/App.config
new file mode 100644
index 0000000..8e15646
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/Collection.cs b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/Collection.cs
new file mode 100644
index 0000000..3078186
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/Collection.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WinForm_And_Data.Data.DataEntity
+{
+ //Класс обетка над List, для демонстрации работы со списком в стандартном PropertyView
+ public class Wrapper_Class
+ {
+ public List<Entity> list { set; get; }
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/DataController_Entity.cs b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/DataController_Entity.cs
new file mode 100644
index 0000000..22a84fb
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/DataController_Entity.cs
@@ -0,0 +1,97 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using System.ComponentModel;
+
+namespace WinForm_And_Data.Data.DataEntity
+{
+ public class DataController_Entity
+ {
+ #region singleton
+
+ private static DataController_Entity dataController;
+
+ public static DataController_Entity Get()
+ {
+ if (dataController == null)
+ dataController = new DataController_Entity();
+
+ return dataController;
+ }
+
+ public static void Destroy()
+ {
+ dataController = new DataController_Entity();
+ }
+
+ private DataController_Entity()
+ {
+ }
+
+ #endregion
+
+
+ //Тестовые данные для демонстрации
+ #region TestData
+ public enum Enum_DataType
+ {
+ entity,
+ list,
+ array,
+ wrapper,
+ BindingSortList
+ }
+
+ public object this[Enum_DataType e]
+ {
+ get
+ {
+ Object res = null;
+ List<Entity> lst = null;
+
+ switch (e)
+ {
+ case Enum_DataType.entity:
+ res = Entity.GetNewEntity();
+ break;
+
+ case Enum_DataType.list:
+ lst = new List<Entity>();
+
+ for (int i = 0; i < 4; i++)
+ lst.Add(Entity.GetNewEntity());
+
+ res = lst;
+ break;
+
+ case Enum_DataType.array:
+ res = ((List<Entity>)this[Enum_DataType.list]).ToArray();
+ break;
+ case Enum_DataType.wrapper:
+ res = new Wrapper_Class()
+ {
+ list = ((List<Entity>)this[Enum_DataType.list])
+ };
+
+ break;
+
+ case Enum_DataType.BindingSortList:
+ lst = (List<Entity>)this[Enum_DataType.list];
+ lst[lst.Count-2].Id = 123;
+ res = new MyBindingList<Entity>((List<Entity>)lst);
+
+ break;
+ }
+
+
+ return res;
+ }
+
+ }
+
+ #endregion
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/Entity.cs b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/Entity.cs
new file mode 100644
index 0000000..b641e54
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/Entity.cs
@@ -0,0 +1,57 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using System.Drawing.Design;
+using System.ComponentModel;
+
+namespace WinForm_And_Data.Data.DataEntity
+{
+
+ //Аттрибут для отобрадения свойсвт этого объекта в PropertyView,
+ //когда он является частью другого обеъкта
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ public class Entity
+ {
+ public enum EnumType
+ {
+ type1,
+ type2,
+ type3
+ }
+
+ public int Id { set; get; }
+ public string Name { set; get; }
+ public int Age { set; get; }
+
+ //Атрибут для расширенного текстового редактора PropertyGrid
+ [Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
+ "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ public string Description { set; get; }
+
+ public EnumType type { set; get; }
+
+
+ private static int ID_Count = -1;
+ public static Entity GetNewEntity()
+ {
+ ID_Count++;
+ return new Entity()
+ {
+ Id = ID_Count,
+ Name = "Name " + ID_Count,
+ Age = 20 + ID_Count,
+ Description = "Description" + ID_Count,
+ type = EnumType.type1
+ };
+ }
+
+ public override string ToString()
+ {
+ return Name;
+ }
+
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/MyBindingList.cs b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/MyBindingList.cs
new file mode 100644
index 0000000..cad2af1
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Data/DataEntity/MyBindingList.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using System.ComponentModel;
+using System.Reflection;
+
+namespace WinForm_And_Data.Data.DataEntity
+{
+ public class MyBindingList<T> : BindingList<T>
+ {
+ //http://www.cyberforum.ru/windows-forms/thread390432.html
+ //Пример списка с сортировкой для DataGridView
+ public MyBindingList(IList<T> spisok)
+ : base(spisok)
+ {
+ SortPropertyNumber = 0;
+ }
+
+
+ //Метод сортировки
+ protected override void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
+ {
+ var list = this.Items;
+ var templist = new List<T>();
+ if (direction == ListSortDirection.Ascending)
+ templist = list.OrderBy(y => prop.GetValue(y)).ToList();
+ else
+ templist = list.OrderByDescending(y => prop.GetValue(y)).ToList();
+ list.Clear();
+ foreach (var inside in templist)
+ {
+ list.Add(inside);
+ }
+ }
+
+ public int SortPropertyNumber { set; get; }
+ //Флаг поддержкт возможности сортировки
+ protected override bool SupportsSortingCore
+ {
+ get { return true; }
+ }
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Data/DT/DataController_DataTable.cs b/WinForm_And_Data/WinForm_And_Data/Data/DT/DataController_DataTable.cs
new file mode 100644
index 0000000..fc0b2cb
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Data/DT/DataController_DataTable.cs
@@ -0,0 +1,59 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using System.Data;
+
+namespace WinForm_And_Data.Data.DT
+{
+ public class DataController_DataTable
+ {
+ #region singleton
+
+ private static DataController_DataTable dataController;
+
+ public static DataController_DataTable Get()
+ {
+ if (dataController == null)
+ dataController = new DataController_DataTable();
+
+ return dataController;
+ }
+
+ public static void Destroy()
+ {
+ dataController = new DataController_DataTable();
+ }
+
+ private DataController_DataTable()
+ {
+ }
+
+ #endregion
+
+
+ public DataTable GetTestData1(int count = 4)
+ {
+ DataTable dataTable = new DataTable();
+
+ dataTable.Columns.Add("Column 0");
+ dataTable.Columns.Add("Column 1");
+
+ for (int i = 0; i < count; i++)
+ {
+ DataRow dataRow = dataTable.NewRow();
+
+ dataRow["Column 0"] = "Column 0, Value" + i;
+ dataRow["Column 1"] = "Column 1, Value" + i;
+
+ dataTable.Rows.Add(dataRow);
+ }
+
+
+ return dataTable;
+ }
+
+ }
+}
WinForm_And_Data/WinForm_And_Data/Form1.cs 96(+96 -0)
diff --git a/WinForm_And_Data/WinForm_And_Data/Form1.cs b/WinForm_And_Data/WinForm_And_Data/Form1.cs
new file mode 100644
index 0000000..78c6dcb
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Form1.cs
@@ -0,0 +1,96 @@
+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;
+
+using WinForm_And_Data.Forms.PropertyGrid;
+using WinForm_And_Data.Data.DataEntity;
+
+using WinForm_And_Data.Forms.DataGridView;
+using WinForm_And_Data.Data.DT;
+
+namespace WinForm_And_Data
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+
+
+ #region PropertyGrid
+ private void button2_Click_1(object sender, EventArgs e)
+ {
+ new F_PropertyGrid(DataController_Entity.Get()[DataController_Entity.Enum_DataType.entity]).ShowDialog();
+ }
+
+ private void button4_Click(object sender, EventArgs e)
+ {
+ new F_PropertyGrid(DataController_Entity.Get()[DataController_Entity.Enum_DataType.list]).ShowDialog();
+ }
+
+ private void button5_Click(object sender, EventArgs e)
+ {
+ new F_PropertyGrid(DataController_Entity.Get()[DataController_Entity.Enum_DataType.array]).ShowDialog();
+ }
+
+ private void button6_Click(object sender, EventArgs e)
+ {
+ new F_PropertyGrid(DataController_Entity.Get()[DataController_Entity.Enum_DataType.wrapper]).ShowDialog();
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ new F_PropertyGrid(DataController_DataTable.Get().GetTestData1()).ShowDialog();
+ }
+
+ #endregion
+
+
+ #region DataGridView
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ new F_DataGridView(DataController_Entity.Get()[DataController_Entity.Enum_DataType.entity]).ShowDialog();
+ }
+
+ private void button3_Click(object sender, EventArgs e)
+ {
+ List<Entity> lst = (List < Entity > )DataController_Entity.Get()[DataController_Entity.Enum_DataType.list];
+ new F_DataGridView(lst).ShowDialog();
+ Console.WriteLine(lst[0].Name);
+ }
+
+ private void button7_Click(object sender, EventArgs e)
+ {
+ new F_DataGridView(DataController_Entity.Get()[DataController_Entity.Enum_DataType.array]).ShowDialog();
+
+ }
+
+ private void button1_Click_1(object sender, EventArgs e)
+ {
+ new F_DataGridView(DataController_DataTable.Get().GetTestData1()).ShowDialog();
+ }
+
+
+
+
+ #endregion
+
+ private void button1_Click_2(object sender, EventArgs e)
+ {
+ new F_PropertyGrid_Mod(DataController_Entity.Get()[DataController_Entity.Enum_DataType.list]).ShowDialog();
+ }
+
+ private void button2_Click_2(object sender, EventArgs e)
+ {
+ new F_DataGridView(DataController_Entity.Get()[DataController_Entity.Enum_DataType.BindingSortList]).ShowDialog();
+ }
+ }
+}
WinForm_And_Data/WinForm_And_Data/Form1.Designer.cs 328(+328 -0)
diff --git a/WinForm_And_Data/WinForm_And_Data/Form1.Designer.cs b/WinForm_And_Data/WinForm_And_Data/Form1.Designer.cs
new file mode 100644
index 0000000..c82c2c7
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Form1.Designer.cs
@@ -0,0 +1,328 @@
+namespace WinForm_And_Data
+{
+ partial class Form1
+ {
+ /// <summary>
+ /// Обязательная переменная конструктора.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Освободить все используемые ресурсы.
+ /// </summary>
+ /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором форм Windows
+
+ /// <summary>
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.button_DGV_Entity = new System.Windows.Forms.Button();
+ this.button_PG_Entity = new System.Windows.Forms.Button();
+ this.button_DGV_List = new System.Windows.Forms.Button();
+ this.button_PG_ListEntity = new System.Windows.Forms.Button();
+ this.button_PG_ArrayEntity = new System.Windows.Forms.Button();
+ this.button_PG_ContainerList = new System.Windows.Forms.Button();
+ this.button_DGV_Array = new System.Windows.Forms.Button();
+ this.button_DGV_DT = new System.Windows.Forms.Button();
+ this.button_PG_DT = new System.Windows.Forms.Button();
+ this.label4 = new System.Windows.Forms.Label();
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 1);
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(483, 370);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.label1.Location = new System.Drawing.Point(4, 4);
+ this.label1.Margin = new System.Windows.Forms.Padding(4);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(475, 72);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "Меню";
+ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.ColumnCount = 3;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel2.Controls.Add(this.label2, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.label3, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.button_DGV_Entity, 0, 1);
+ this.tableLayoutPanel2.Controls.Add(this.button_PG_Entity, 1, 1);
+ this.tableLayoutPanel2.Controls.Add(this.button_DGV_List, 0, 2);
+ this.tableLayoutPanel2.Controls.Add(this.button_PG_ListEntity, 1, 2);
+ this.tableLayoutPanel2.Controls.Add(this.button_PG_ArrayEntity, 1, 3);
+ this.tableLayoutPanel2.Controls.Add(this.button_PG_ContainerList, 1, 4);
+ this.tableLayoutPanel2.Controls.Add(this.button_DGV_Array, 0, 3);
+ this.tableLayoutPanel2.Controls.Add(this.button_DGV_DT, 0, 4);
+ this.tableLayoutPanel2.Controls.Add(this.button_PG_DT, 1, 5);
+ this.tableLayoutPanel2.Controls.Add(this.label4, 2, 0);
+ this.tableLayoutPanel2.Controls.Add(this.button1, 2, 2);
+ this.tableLayoutPanel2.Controls.Add(this.button2, 0, 5);
+ this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 83);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 6;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(477, 284);
+ this.tableLayoutPanel2.TabIndex = 1;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.label2.Location = new System.Drawing.Point(4, 4);
+ this.label2.Margin = new System.Windows.Forms.Padding(4);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(150, 52);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "DataGridView";
+ this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.label3.Location = new System.Drawing.Point(162, 4);
+ this.label3.Margin = new System.Windows.Forms.Padding(4);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(150, 52);
+ this.label3.TabIndex = 1;
+ this.label3.Text = "PropertyGrid";
+ this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // button_DGV_Entity
+ //
+ this.button_DGV_Entity.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_DGV_Entity.Location = new System.Drawing.Point(7, 67);
+ this.button_DGV_Entity.Margin = new System.Windows.Forms.Padding(7);
+ this.button_DGV_Entity.Name = "button_DGV_Entity";
+ this.button_DGV_Entity.Size = new System.Drawing.Size(144, 30);
+ this.button_DGV_Entity.TabIndex = 2;
+ this.button_DGV_Entity.Text = "Экземпляр сущности";
+ this.button_DGV_Entity.UseVisualStyleBackColor = true;
+ this.button_DGV_Entity.Click += new System.EventHandler(this.button1_Click);
+ //
+ // button_PG_Entity
+ //
+ this.button_PG_Entity.BackColor = System.Drawing.SystemColors.Highlight;
+ this.button_PG_Entity.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_PG_Entity.Location = new System.Drawing.Point(164, 66);
+ this.button_PG_Entity.Margin = new System.Windows.Forms.Padding(6);
+ this.button_PG_Entity.Name = "button_PG_Entity";
+ this.button_PG_Entity.Size = new System.Drawing.Size(146, 32);
+ this.button_PG_Entity.TabIndex = 3;
+ this.button_PG_Entity.Text = "Экземпляр сущности";
+ this.button_PG_Entity.UseVisualStyleBackColor = false;
+ this.button_PG_Entity.Click += new System.EventHandler(this.button2_Click_1);
+ //
+ // button_DGV_List
+ //
+ this.button_DGV_List.BackColor = System.Drawing.SystemColors.HotTrack;
+ this.button_DGV_List.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_DGV_List.Location = new System.Drawing.Point(7, 111);
+ this.button_DGV_List.Margin = new System.Windows.Forms.Padding(7);
+ this.button_DGV_List.Name = "button_DGV_List";
+ this.button_DGV_List.Size = new System.Drawing.Size(144, 30);
+ this.button_DGV_List.TabIndex = 4;
+ this.button_DGV_List.Text = "Список сущностей";
+ this.button_DGV_List.UseVisualStyleBackColor = false;
+ this.button_DGV_List.Click += new System.EventHandler(this.button3_Click);
+ //
+ // button_PG_ListEntity
+ //
+ this.button_PG_ListEntity.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_PG_ListEntity.Location = new System.Drawing.Point(164, 110);
+ this.button_PG_ListEntity.Margin = new System.Windows.Forms.Padding(6);
+ this.button_PG_ListEntity.Name = "button_PG_ListEntity";
+ this.button_PG_ListEntity.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.button_PG_ListEntity.Size = new System.Drawing.Size(146, 32);
+ this.button_PG_ListEntity.TabIndex = 5;
+ this.button_PG_ListEntity.Text = "Список сущностей";
+ this.button_PG_ListEntity.UseVisualStyleBackColor = true;
+ this.button_PG_ListEntity.Click += new System.EventHandler(this.button4_Click);
+ //
+ // button_PG_ArrayEntity
+ //
+ this.button_PG_ArrayEntity.BackColor = System.Drawing.SystemColors.Highlight;
+ this.button_PG_ArrayEntity.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_PG_ArrayEntity.Location = new System.Drawing.Point(164, 154);
+ this.button_PG_ArrayEntity.Margin = new System.Windows.Forms.Padding(6);
+ this.button_PG_ArrayEntity.Name = "button_PG_ArrayEntity";
+ this.button_PG_ArrayEntity.Size = new System.Drawing.Size(146, 32);
+ this.button_PG_ArrayEntity.TabIndex = 6;
+ this.button_PG_ArrayEntity.Text = "Массив сущностей";
+ this.button_PG_ArrayEntity.UseVisualStyleBackColor = false;
+ this.button_PG_ArrayEntity.Click += new System.EventHandler(this.button5_Click);
+ //
+ // button_PG_ContainerList
+ //
+ this.button_PG_ContainerList.BackColor = System.Drawing.SystemColors.Highlight;
+ this.button_PG_ContainerList.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_PG_ContainerList.Location = new System.Drawing.Point(164, 198);
+ this.button_PG_ContainerList.Margin = new System.Windows.Forms.Padding(6);
+ this.button_PG_ContainerList.Name = "button_PG_ContainerList";
+ this.button_PG_ContainerList.Size = new System.Drawing.Size(146, 32);
+ this.button_PG_ContainerList.TabIndex = 7;
+ this.button_PG_ContainerList.Text = "Класс обертка над списком сущностей";
+ this.button_PG_ContainerList.UseVisualStyleBackColor = false;
+ this.button_PG_ContainerList.Click += new System.EventHandler(this.button6_Click);
+ //
+ // button_DGV_Array
+ //
+ this.button_DGV_Array.BackColor = System.Drawing.SystemColors.HotTrack;
+ this.button_DGV_Array.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_DGV_Array.Location = new System.Drawing.Point(7, 155);
+ this.button_DGV_Array.Margin = new System.Windows.Forms.Padding(7);
+ this.button_DGV_Array.Name = "button_DGV_Array";
+ this.button_DGV_Array.Size = new System.Drawing.Size(144, 30);
+ this.button_DGV_Array.TabIndex = 8;
+ this.button_DGV_Array.Text = "Массив сущностей";
+ this.button_DGV_Array.UseVisualStyleBackColor = false;
+ this.button_DGV_Array.Click += new System.EventHandler(this.button7_Click);
+ //
+ // button_DGV_DT
+ //
+ this.button_DGV_DT.BackColor = System.Drawing.SystemColors.HotTrack;
+ this.button_DGV_DT.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_DGV_DT.Location = new System.Drawing.Point(7, 199);
+ this.button_DGV_DT.Margin = new System.Windows.Forms.Padding(7);
+ this.button_DGV_DT.Name = "button_DGV_DT";
+ this.button_DGV_DT.Size = new System.Drawing.Size(144, 30);
+ this.button_DGV_DT.TabIndex = 9;
+ this.button_DGV_DT.Text = "Таблица";
+ this.button_DGV_DT.UseVisualStyleBackColor = false;
+ this.button_DGV_DT.Click += new System.EventHandler(this.button1_Click_1);
+ //
+ // button_PG_DT
+ //
+ this.button_PG_DT.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button_PG_DT.Location = new System.Drawing.Point(165, 243);
+ this.button_PG_DT.Margin = new System.Windows.Forms.Padding(7);
+ this.button_PG_DT.Name = "button_PG_DT";
+ this.button_PG_DT.Size = new System.Drawing.Size(144, 34);
+ this.button_PG_DT.TabIndex = 10;
+ this.button_PG_DT.Text = "Таблица";
+ this.button_PG_DT.UseVisualStyleBackColor = true;
+ this.button_PG_DT.Click += new System.EventHandler(this.button2_Click);
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.label4.Location = new System.Drawing.Point(320, 4);
+ this.label4.Margin = new System.Windows.Forms.Padding(4);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(153, 52);
+ this.label4.TabIndex = 11;
+ this.label4.Text = "PropertyGrid_Mod";
+ this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // button1
+ //
+ this.button1.BackColor = System.Drawing.SystemColors.MenuHighlight;
+ this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button1.Location = new System.Drawing.Point(323, 111);
+ this.button1.Margin = new System.Windows.Forms.Padding(7);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(147, 30);
+ this.button1.TabIndex = 12;
+ this.button1.Text = "Список сущностей";
+ this.button1.UseVisualStyleBackColor = false;
+ this.button1.Click += new System.EventHandler(this.button1_Click_2);
+ //
+ // button2
+ //
+ this.button2.BackColor = System.Drawing.SystemColors.MenuHighlight;
+ this.button2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button2.Location = new System.Drawing.Point(7, 243);
+ this.button2.Margin = new System.Windows.Forms.Padding(7);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(144, 34);
+ this.button2.TabIndex = 13;
+ this.button2.Text = "Список с сортировкой";
+ this.button2.UseVisualStyleBackColor = false;
+ this.button2.Click += new System.EventHandler(this.button2_Click_2);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(507, 394);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel1.PerformLayout();
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.tableLayoutPanel2.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Button button_DGV_Entity;
+ private System.Windows.Forms.Button button_PG_Entity;
+ private System.Windows.Forms.Button button_DGV_List;
+ private System.Windows.Forms.Button button_PG_ListEntity;
+ private System.Windows.Forms.Button button_PG_ArrayEntity;
+ private System.Windows.Forms.Button button_PG_ContainerList;
+ private System.Windows.Forms.Button button_DGV_Array;
+ private System.Windows.Forms.Button button_DGV_DT;
+ private System.Windows.Forms.Button button_PG_DT;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
+
WinForm_And_Data/WinForm_And_Data/Form1.resx 120(+120 -0)
diff --git a/WinForm_And_Data/WinForm_And_Data/Form1.resx b/WinForm_And_Data/WinForm_And_Data/Form1.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Form1.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.cs b/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.cs
new file mode 100644
index 0000000..7c43c29
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.cs
@@ -0,0 +1,25 @@
+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 WinForm_And_Data.Forms.DataGridView
+{
+ public partial class F_DataGridView : Form
+ {
+ public F_DataGridView(Object obj)
+ {
+ InitializeComponent();
+
+ Console.WriteLine(typeof(F_DataGridView).Name + "|"+ obj.GetType().Name);
+
+ dataGridView1.DataSource = obj;
+ }
+
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.Designer.cs b/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.Designer.cs
new file mode 100644
index 0000000..2d1494e
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.Designer.cs
@@ -0,0 +1,63 @@
+namespace WinForm_And_Data.Forms.DataGridView
+{
+ partial class F_DataGridView
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(12, 12);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.Size = new System.Drawing.Size(436, 354);
+ this.dataGridView1.TabIndex = 0;
+ //
+ // F_DataGridView_DataTable
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(460, 378);
+ this.Controls.Add(this.dataGridView1);
+ this.Name = "F_DataGridView";
+ this.Text = "F_DataGridView";
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.DataGridView dataGridView1;
+ }
+}
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.resx b/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/DataGridView/F_DataGridView.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.cs b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.cs
new file mode 100644
index 0000000..d8cc42e
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.cs
@@ -0,0 +1,46 @@
+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;
+
+using WinForm_And_Data.Data.DataEntity;
+
+namespace WinForm_And_Data.Forms.PropertyGrid
+{
+ public partial class F_PropertyGrid : Form
+ {
+ public F_PropertyGrid(Object obj)
+ {
+ InitializeComponent();
+
+ Console.WriteLine(typeof(F_PropertyGrid).Name + "|" + obj.GetType().Name);
+
+ propertyGrid1.SelectedObject = obj;
+ }
+
+ private void F_PropertyGrid_Entity_Load(object sender, EventArgs e)
+ {
+ //Entity entity = DataController_Entity.Get().GetTestData1();
+
+ //propertyGrid1.SelectedObject = entity;
+
+ //List<Entity> entities = new List<Entity>();
+ //entities.Add(Entity.GetNewEntity());
+ //entities.Add(Entity.GetNewEntity());
+
+
+ //Collection collection = new Collection();
+ //collection.lst = new List<Entity>();
+ //collection.lst.Add(Entity.GetNewEntity());
+ //collection.lst.Add(Entity.GetNewEntity());
+
+
+ //propertyGrid1.SelectedObject = collection.lst.ToArray();
+ }
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.Designer.cs b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.Designer.cs
new file mode 100644
index 0000000..ed44e59
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.Designer.cs
@@ -0,0 +1,64 @@
+namespace WinForm_And_Data.Forms.PropertyGrid
+{
+ partial class F_PropertyGrid
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
+ this.SuspendLayout();
+ //
+ // propertyGrid1
+ //
+ this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.propertyGrid1.HelpVisible = false;
+ this.propertyGrid1.Location = new System.Drawing.Point(12, 37);
+ this.propertyGrid1.Name = "propertyGrid1";
+ this.propertyGrid1.PropertySort = System.Windows.Forms.PropertySort.NoSort;
+ this.propertyGrid1.Size = new System.Drawing.Size(509, 297);
+ this.propertyGrid1.TabIndex = 0;
+ this.propertyGrid1.ToolbarVisible = false;
+ //
+ // F_PropertyGrid_Entity
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(533, 346);
+ this.Controls.Add(this.propertyGrid1);
+ this.Name = "F_PropertyGrid";
+ this.Text = "F_PropertyGrid";
+ this.Load += new System.EventHandler(this.F_PropertyGrid_Entity_Load);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.PropertyGrid propertyGrid1;
+ }
+}
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.resx b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.cs b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.cs
new file mode 100644
index 0000000..31ddea5
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.cs
@@ -0,0 +1,32 @@
+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 WinForm_And_Data.Forms.PropertyGrid
+{
+ public partial class F_PropertyGrid_Mod : Form
+ {
+ public F_PropertyGrid_Mod(Object obj)
+ {
+ InitializeComponent();
+
+ listBox1.DataSource = obj;
+ }
+
+ private void F_PropertyGrid_Mod_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ propertyGrid1.SelectedObject = listBox1.SelectedItem;
+ }
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.Designer.cs b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.Designer.cs
new file mode 100644
index 0000000..e815a0c
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.Designer.cs
@@ -0,0 +1,99 @@
+namespace WinForm_And_Data.Forms.PropertyGrid
+{
+ partial class F_PropertyGrid_Mod
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.listBox1 = new System.Windows.Forms.ListBox();
+ this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+ this.splitContainer1.Panel1.SuspendLayout();
+ this.splitContainer1.Panel2.SuspendLayout();
+ this.splitContainer1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // splitContainer1
+ //
+ this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer1.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer1.Name = "splitContainer1";
+ //
+ // splitContainer1.Panel1
+ //
+ this.splitContainer1.Panel1.Controls.Add(this.listBox1);
+ //
+ // splitContainer1.Panel2
+ //
+ this.splitContainer1.Panel2.Controls.Add(this.propertyGrid1);
+ this.splitContainer1.Size = new System.Drawing.Size(603, 417);
+ this.splitContainer1.SplitterDistance = 201;
+ this.splitContainer1.TabIndex = 0;
+ //
+ // listBox1
+ //
+ this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.listBox1.FormattingEnabled = true;
+ this.listBox1.Location = new System.Drawing.Point(12, 15);
+ this.listBox1.Name = "listBox1";
+ this.listBox1.Size = new System.Drawing.Size(169, 394);
+ this.listBox1.TabIndex = 0;
+ this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
+ //
+ // propertyGrid1
+ //
+ this.propertyGrid1.Location = new System.Drawing.Point(14, 12);
+ this.propertyGrid1.Name = "propertyGrid1";
+ this.propertyGrid1.Size = new System.Drawing.Size(298, 371);
+ this.propertyGrid1.TabIndex = 0;
+ //
+ // F_PropertyGrid_Mod
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(603, 417);
+ this.Controls.Add(this.splitContainer1);
+ this.Name = "F_PropertyGrid_Mod";
+ this.Text = "F_PropertyGrid_Mod";
+ this.Load += new System.EventHandler(this.F_PropertyGrid_Mod_Load);
+ this.splitContainer1.Panel1.ResumeLayout(false);
+ this.splitContainer1.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+ this.splitContainer1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.SplitContainer splitContainer1;
+ private System.Windows.Forms.ListBox listBox1;
+ private System.Windows.Forms.PropertyGrid propertyGrid1;
+ }
+}
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.resx b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Forms/PropertyGrid/F_PropertyGrid_Mod.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
WinForm_And_Data/WinForm_And_Data/Program.cs 22(+22 -0)
diff --git a/WinForm_And_Data/WinForm_And_Data/Program.cs b/WinForm_And_Data/WinForm_And_Data/Program.cs
new file mode 100644
index 0000000..fb606ef
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace WinForm_And_Data
+{
+ static class Program
+ {
+ /// <summary>
+ /// Главная точка входа для приложения.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+}
diff --git a/WinForm_And_Data/WinForm_And_Data/Properties/AssemblyInfo.cs b/WinForm_And_Data/WinForm_And_Data/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..b6c5d14
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
+// связанные со сборкой.
+[assembly: AssemblyTitle("WinForm_And_Data")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WinForm_And_Data")]
+[assembly: AssemblyCopyright("Copyright © 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
+[assembly: ComVisible(false)]
+
+// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
+[assembly: Guid("89405a8d-fe12-41ed-b68d-c3a5db94e95e")]
+
+// Сведения о версии сборки состоят из следующих четырех значений:
+//
+// Основной номер версии
+// Дополнительный номер версии
+// Номер сборки
+// Редакция
+//
+// Можно задать все значения или принять номер сборки и номер редакции по умолчанию.
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WinForm_And_Data/WinForm_And_Data/Properties/Resources.Designer.cs b/WinForm_And_Data/WinForm_And_Data/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..eb376d8
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// Этот код создан программным средством.
+// Версия среды выполнения: 4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+// код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace WinForm_And_Data.Properties
+{
+
+
+ /// <summary>
+ /// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+ /// </summary>
+ // Этот класс был автоматически создан при помощи 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()
+ {
+ }
+
+ /// <summary>
+ /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+ /// </summary>
+ [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("WinForm_And_Data.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Переопределяет свойство CurrentUICulture текущего потока для всех
+ /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+ /// </summary>
+ [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/WinForm_And_Data/WinForm_And_Data/Properties/Resources.resx b/WinForm_And_Data/WinForm_And_Data/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Properties/Resources.resx
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
diff --git a/WinForm_And_Data/WinForm_And_Data/Properties/Settings.Designer.cs b/WinForm_And_Data/WinForm_And_Data/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..e77b1a0
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// 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.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace WinForm_And_Data.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/WinForm_And_Data/WinForm_And_Data/Properties/Settings.settings b/WinForm_And_Data/WinForm_And_Data/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/Properties/Settings.settings
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
diff --git a/WinForm_And_Data/WinForm_And_Data/WinForm_And_Data.csproj b/WinForm_And_Data/WinForm_And_Data/WinForm_And_Data.csproj
new file mode 100644
index 0000000..092afe2
--- /dev/null
+++ b/WinForm_And_Data/WinForm_And_Data/WinForm_And_Data.csproj
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{89405A8D-FE12-41ED-B68D-C3A5DB94E95E}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <RootNamespace>WinForm_And_Data</RootNamespace>
+ <AssemblyName>WinForm_And_Data</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <Deterministic>true</Deterministic>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Data\DataEntity\MyBindingList.cs" />
+ <Compile Include="Data\DataEntity\Collection.cs" />
+ <Compile Include="Data\DataEntity\DataController_Entity.cs" />
+ <Compile Include="Data\DataEntity\Entity.cs" />
+ <Compile Include="Data\DT\DataController_DataTable.cs" />
+ <Compile Include="Form1.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Form1.Designer.cs">
+ <DependentUpon>Form1.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Forms\DataGridView\F_DataGridView.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Forms\DataGridView\F_DataGridView.Designer.cs">
+ <DependentUpon>F_DataGridView.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Forms\PropertyGrid\F_PropertyGrid.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Forms\PropertyGrid\F_PropertyGrid.Designer.cs">
+ <DependentUpon>F_PropertyGrid.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Forms\PropertyGrid\F_PropertyGrid_Mod.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Forms\PropertyGrid\F_PropertyGrid_Mod.Designer.cs">
+ <DependentUpon>F_PropertyGrid_Mod.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Form1.resx">
+ <DependentUpon>Form1.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Forms\DataGridView\F_DataGridView.resx">
+ <DependentUpon>F_DataGridView.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Forms\PropertyGrid\F_PropertyGrid.resx">
+ <DependentUpon>F_PropertyGrid.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Forms\PropertyGrid\F_PropertyGrid_Mod.resx">
+ <DependentUpon>F_PropertyGrid_Mod.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <ItemGroup />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>
\ No newline at end of file