Form1.cs
Home
/
WinForm_And_Data /
WinForm_And_Data /
Form1.cs
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();
}
}
}