mirror of
https://gitee.com/AntdUI/AntdUI.git
synced 2026-03-20 12:40:42 +08:00
334 lines
14 KiB
C#
334 lines
14 KiB
C#
// COPYRIGHT (C) Tom. ALL RIGHTS RESERVED.
|
|
// THE AntdUI PROJECT IS AN WINFORM LIBRARY LICENSED UNDER THE Apache-2.0 License.
|
|
// LICENSED UNDER THE Apache License, VERSION 2.0 (THE "License")
|
|
// YOU MAY NOT USE THIS FILE EXCEPT IN COMPLIANCE WITH THE License.
|
|
// YOU MAY OBTAIN A COPY OF THE LICENSE AT
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, SOFTWARE
|
|
// DISTRIBUTED UNDER THE LICENSE IS DISTRIBUTED ON AN "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
// SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING PERMISSIONS AND
|
|
// LIMITATIONS UNDER THE License.
|
|
// GITCODE: https://gitcode.com/AntdUI/AntdUI
|
|
// GITEE: https://gitee.com/AntdUI/AntdUI
|
|
// GITHUB: https://github.com/AntdUI/AntdUI
|
|
// CSDN: https://blog.csdn.net/v_132
|
|
// QQ: 17379620
|
|
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Demo.Controls
|
|
{
|
|
partial class TableAOT
|
|
{
|
|
/// <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
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
header1 = new AntdUI.PageHeader();
|
|
pagination1 = new AntdUI.Pagination();
|
|
table1 = new AntdUI.Table();
|
|
panel1 = new AntdUI.Panel();
|
|
selectEditStyle = new AntdUI.Select();
|
|
selectEditMode = new AntdUI.Select();
|
|
checkFilter = new AntdUI.Checkbox();
|
|
checkAddressLineBreak = new AntdUI.Checkbox();
|
|
checkVisibleHeader = new AntdUI.Checkbox();
|
|
checkEnableHeaderResizing = new AntdUI.Checkbox();
|
|
checkSortOrder = new AntdUI.Checkbox();
|
|
checkSetRowStyle = new AntdUI.Checkbox();
|
|
checkBordered = new AntdUI.Checkbox();
|
|
checkRowsDragSort = new AntdUI.Checkbox();
|
|
checkColumnDragSort = new AntdUI.Checkbox();
|
|
checkFixedHeader = new AntdUI.Checkbox();
|
|
panel_main = new AntdUI.Panel();
|
|
panel1.SuspendLayout();
|
|
panel_main.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// header1
|
|
//
|
|
header1.Description = "展示行列数据。";
|
|
header1.Dock = DockStyle.Top;
|
|
header1.Font = new Font("Microsoft YaHei UI", 12F);
|
|
header1.LocalizationDescription = "Table.Description";
|
|
header1.LocalizationText = "Table.Text";
|
|
header1.Location = new Point(0, 0);
|
|
header1.Name = "header1";
|
|
header1.Padding = new Padding(0, 0, 0, 10);
|
|
header1.Size = new Size(1300, 74);
|
|
header1.TabIndex = 0;
|
|
header1.Text = "Table 表格";
|
|
header1.UseTitleFont = true;
|
|
//
|
|
// pagination1
|
|
//
|
|
pagination1.Dock = DockStyle.Bottom;
|
|
pagination1.Location = new Point(4, 562);
|
|
pagination1.Name = "pagination1";
|
|
pagination1.RightToLeft = RightToLeft.Yes;
|
|
pagination1.ShowSizeChanger = true;
|
|
pagination1.Size = new Size(1292, 40);
|
|
pagination1.TabIndex = 3;
|
|
pagination1.Total = 100;
|
|
pagination1.ValueChanged += pagination1_ValueChanged;
|
|
pagination1.ShowTotalChanged += pagination1_ShowTotalChanged;
|
|
//
|
|
// table1
|
|
//
|
|
table1.AutoSizeColumnsMode = AntdUI.ColumnsMode.Fill;
|
|
table1.CellImpactHeight = false;
|
|
table1.Dock = DockStyle.Fill;
|
|
table1.Location = new Point(4, 43);
|
|
table1.Name = "table1";
|
|
table1.Radius = 6;
|
|
table1.Size = new Size(1292, 519);
|
|
table1.TabIndex = 2;
|
|
table1.CellClick += table1_CellClick;
|
|
table1.CellButtonClick += table1_CellButtonClick;
|
|
table1.CellBeginEdit += table1_CellBeginEdit;
|
|
table1.RowPaint += table1_RowPaint;
|
|
//
|
|
// panel1
|
|
//
|
|
panel1.Back = Color.Transparent;
|
|
panel1.Controls.Add(selectEditStyle);
|
|
panel1.Controls.Add(selectEditMode);
|
|
panel1.Controls.Add(checkFilter);
|
|
panel1.Controls.Add(checkAddressLineBreak);
|
|
panel1.Controls.Add(checkVisibleHeader);
|
|
panel1.Controls.Add(checkEnableHeaderResizing);
|
|
panel1.Controls.Add(checkSortOrder);
|
|
panel1.Controls.Add(checkSetRowStyle);
|
|
panel1.Controls.Add(checkBordered);
|
|
panel1.Controls.Add(checkRowsDragSort);
|
|
panel1.Controls.Add(checkColumnDragSort);
|
|
panel1.Controls.Add(checkFixedHeader);
|
|
panel1.Dock = DockStyle.Top;
|
|
panel1.Font = new Font("Microsoft YaHei UI", 10F);
|
|
panel1.Location = new Point(4, 0);
|
|
panel1.Name = "panel1";
|
|
panel1.Radius = 0;
|
|
panel1.Size = new Size(1292, 43);
|
|
panel1.TabIndex = 1;
|
|
//
|
|
// selectEditStyle
|
|
//
|
|
selectEditStyle.AllowClear = true;
|
|
selectEditStyle.Dock = DockStyle.Left;
|
|
selectEditStyle.Enabled = false;
|
|
selectEditStyle.List = true;
|
|
selectEditStyle.ListAutoWidth = true;
|
|
selectEditStyle.LocalizationPlaceholderText = "Table.{id}";
|
|
selectEditStyle.Location = new Point(1098, 0);
|
|
selectEditStyle.Name = "selectEditStyle";
|
|
selectEditStyle.PlaceholderText = "编辑风格";
|
|
selectEditStyle.Size = new Size(100, 43);
|
|
selectEditStyle.TabIndex = 11;
|
|
selectEditStyle.SelectedValueChanged += selectEditStyle_SelectedValueChanged;
|
|
//
|
|
// selectEditMode
|
|
//
|
|
selectEditMode.AllowClear = true;
|
|
selectEditMode.Dock = DockStyle.Left;
|
|
selectEditMode.List = true;
|
|
selectEditMode.ListAutoWidth = true;
|
|
selectEditMode.LocalizationPlaceholderText = "Table.{id}";
|
|
selectEditMode.Location = new Point(988, 0);
|
|
selectEditMode.Name = "selectEditMode";
|
|
selectEditMode.PlaceholderText = "编辑模式";
|
|
selectEditMode.Size = new Size(104, 43);
|
|
selectEditMode.TabIndex = 10;
|
|
selectEditMode.SelectedValueChanged += selectEditMode_SelectedValueChanged;
|
|
//
|
|
// checkFilter
|
|
//
|
|
checkFilter.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkFilter.Dock = DockStyle.Left;
|
|
checkFilter.LocalizationText = "Table.{id}";
|
|
checkFilter.Location = new Point(897, 0);
|
|
checkFilter.Name = "checkFilter";
|
|
checkFilter.Size = new Size(91, 43);
|
|
checkFilter.TabIndex = 9;
|
|
checkFilter.Text = "年龄筛选";
|
|
checkFilter.CheckedChanged += checkFilter_CheckedChanged;
|
|
//
|
|
// checkAddressLineBreak
|
|
//
|
|
checkAddressLineBreak.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkAddressLineBreak.Dock = DockStyle.Left;
|
|
checkAddressLineBreak.LocalizationText = "Table.{id}";
|
|
checkAddressLineBreak.Location = new Point(806, 0);
|
|
checkAddressLineBreak.Name = "checkAddressLineBreak";
|
|
checkAddressLineBreak.Size = new Size(91, 43);
|
|
checkAddressLineBreak.TabIndex = 8;
|
|
checkAddressLineBreak.Text = "地址换行";
|
|
checkAddressLineBreak.CheckedChanged += checkAddressLineBreak_CheckedChanged;
|
|
//
|
|
// checkVisibleHeader
|
|
//
|
|
checkVisibleHeader.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkVisibleHeader.Checked = true;
|
|
checkVisibleHeader.Dock = DockStyle.Left;
|
|
checkVisibleHeader.LocalizationText = "Table.{id}";
|
|
checkVisibleHeader.Location = new Point(715, 0);
|
|
checkVisibleHeader.Name = "checkVisibleHeader";
|
|
checkVisibleHeader.Size = new Size(91, 43);
|
|
checkVisibleHeader.TabIndex = 7;
|
|
checkVisibleHeader.Text = "显示表头";
|
|
checkVisibleHeader.CheckedChanged += checkVisibleHeader_CheckedChanged;
|
|
//
|
|
// checkEnableHeaderResizing
|
|
//
|
|
checkEnableHeaderResizing.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkEnableHeaderResizing.Dock = DockStyle.Left;
|
|
checkEnableHeaderResizing.LocalizationText = "Table.{id}";
|
|
checkEnableHeaderResizing.Location = new Point(571, 0);
|
|
checkEnableHeaderResizing.Name = "checkEnableHeaderResizing";
|
|
checkEnableHeaderResizing.Size = new Size(144, 43);
|
|
checkEnableHeaderResizing.TabIndex = 6;
|
|
checkEnableHeaderResizing.Text = "手动调整列头宽度";
|
|
checkEnableHeaderResizing.CheckedChanged += checkEnableHeaderResizing_CheckedChanged;
|
|
//
|
|
// checkSortOrder
|
|
//
|
|
checkSortOrder.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkSortOrder.Dock = DockStyle.Left;
|
|
checkSortOrder.LocalizationText = "Table.{id}";
|
|
checkSortOrder.Location = new Point(480, 0);
|
|
checkSortOrder.Name = "checkSortOrder";
|
|
checkSortOrder.Size = new Size(91, 43);
|
|
checkSortOrder.TabIndex = 5;
|
|
checkSortOrder.Text = "年龄排序";
|
|
checkSortOrder.CheckedChanged += checkSortOrder_CheckedChanged;
|
|
//
|
|
// checkSetRowStyle
|
|
//
|
|
checkSetRowStyle.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkSetRowStyle.Dock = DockStyle.Left;
|
|
checkSetRowStyle.LocalizationText = "Table.{id}";
|
|
checkSetRowStyle.Location = new Point(403, 0);
|
|
checkSetRowStyle.Name = "checkSetRowStyle";
|
|
checkSetRowStyle.Size = new Size(77, 43);
|
|
checkSetRowStyle.TabIndex = 4;
|
|
checkSetRowStyle.Text = "奇偶列";
|
|
checkSetRowStyle.CheckedChanged += checkSetRowStyle_CheckedChanged;
|
|
//
|
|
// checkBordered
|
|
//
|
|
checkBordered.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkBordered.Dock = DockStyle.Left;
|
|
checkBordered.LocalizationText = "Table.{id}";
|
|
checkBordered.Location = new Point(299, 0);
|
|
checkBordered.Name = "checkBordered";
|
|
checkBordered.Size = new Size(104, 43);
|
|
checkBordered.TabIndex = 3;
|
|
checkBordered.Text = "显示列边框";
|
|
checkBordered.CheckedChanged += checkBordered_CheckedChanged;
|
|
//
|
|
// checkRowsDragSort
|
|
//
|
|
checkRowsDragSort.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkRowsDragSort.Dock = DockStyle.Left;
|
|
checkRowsDragSort.LocalizationText = "Table.{id}";
|
|
checkRowsDragSort.Location = new Point(195, 0);
|
|
checkRowsDragSort.Name = "checkRowsDragSort";
|
|
checkRowsDragSort.Size = new Size(104, 43);
|
|
checkRowsDragSort.TabIndex = 2;
|
|
checkRowsDragSort.Text = "行拖拽排序";
|
|
checkRowsDragSort.CheckedChanged += checkRowsDragSort_CheckedChanged;
|
|
//
|
|
// checkColumnDragSort
|
|
//
|
|
checkColumnDragSort.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkColumnDragSort.Dock = DockStyle.Left;
|
|
checkColumnDragSort.LocalizationText = "Table.{id}";
|
|
checkColumnDragSort.Location = new Point(91, 0);
|
|
checkColumnDragSort.Name = "checkColumnDragSort";
|
|
checkColumnDragSort.Size = new Size(104, 43);
|
|
checkColumnDragSort.TabIndex = 1;
|
|
checkColumnDragSort.Text = "列拖拽排序";
|
|
checkColumnDragSort.CheckedChanged += checkColumnDragSort_CheckedChanged;
|
|
//
|
|
// checkFixedHeader
|
|
//
|
|
checkFixedHeader.AutoSizeMode = AntdUI.TAutoSize.Width;
|
|
checkFixedHeader.Checked = true;
|
|
checkFixedHeader.Dock = DockStyle.Left;
|
|
checkFixedHeader.LocalizationText = "Table.{id}";
|
|
checkFixedHeader.Location = new Point(0, 0);
|
|
checkFixedHeader.Name = "checkFixedHeader";
|
|
checkFixedHeader.Size = new Size(91, 43);
|
|
checkFixedHeader.TabIndex = 0;
|
|
checkFixedHeader.Text = "固定表头";
|
|
checkFixedHeader.CheckedChanged += checkFixedHeader_CheckedChanged;
|
|
//
|
|
// panel_main
|
|
//
|
|
panel_main.Controls.Add(table1);
|
|
panel_main.Controls.Add(pagination1);
|
|
panel_main.Controls.Add(panel1);
|
|
panel_main.Dock = DockStyle.Fill;
|
|
panel_main.Location = new Point(0, 74);
|
|
panel_main.Name = "panel_main";
|
|
panel_main.Padding = new Padding(4, 0, 4, 0);
|
|
panel_main.Radius = 0;
|
|
panel_main.Size = new Size(1300, 602);
|
|
panel_main.TabIndex = 4;
|
|
panel_main.Text = "panel2";
|
|
//
|
|
// TableAOT
|
|
//
|
|
Controls.Add(panel_main);
|
|
Controls.Add(header1);
|
|
Font = new Font("Microsoft YaHei UI", 12F);
|
|
Name = "TableAOT";
|
|
Size = new Size(1300, 676);
|
|
panel1.ResumeLayout(false);
|
|
panel1.PerformLayout();
|
|
panel_main.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private AntdUI.PageHeader header1;
|
|
private AntdUI.Table table1;
|
|
private AntdUI.Pagination pagination1;
|
|
private AntdUI.Panel panel1;
|
|
private AntdUI.Checkbox checkFixedHeader;
|
|
private AntdUI.Checkbox checkEnableHeaderResizing;
|
|
private AntdUI.Checkbox checkColumnDragSort;
|
|
private AntdUI.Checkbox checkRowsDragSort;
|
|
private AntdUI.Checkbox checkSetRowStyle;
|
|
private AntdUI.Checkbox checkBordered;
|
|
private AntdUI.Checkbox checkSortOrder;
|
|
private AntdUI.Checkbox checkVisibleHeader;
|
|
private AntdUI.Panel panel_main;
|
|
private AntdUI.Checkbox checkAddressLineBreak;
|
|
private AntdUI.Checkbox checkFilter;
|
|
private AntdUI.Select selectEditMode;
|
|
private AntdUI.Select selectEditStyle;
|
|
}
|
|
} |