Compare commits

...

11 Commits

Author SHA1 Message Date
czz_y
92d20d473c 升级1.9.12,Button新增动画示例,Table新增单元格绘制 2025-04-28 09:28:31 +08:00
czz_y
40ca78a77c 升级1.9.11,Table支持堆叠表头和合并单元格,Tabs支持禁止选中,Splitter支持收缩 2025-04-21 14:46:49 +08:00
czz_y
90f6b0821b input示例优化 2025-03-28 16:34:13 +08:00
czz_y
4ec61d2d0f
Input示例增加inptTable
Merge pull request !1 from zhubanghao/master
2025-03-28 07:42:17 +00:00
zhubanghao
e5dfc6f2bd 2025-03-28 15:33:20 +08:00
zhubanghao
6bdbdd813b inputTable组合控件 2025-03-28 15:22:57 +08:00
zhubanghao
0dcfd51c33 Merge branch 'master' of https://gitee.com/zhubanghao/antdui-demo 2025-02-26 08:48:58 +08:00
czz_y
79aa560d48
update README-en.md.
Signed-off-by: czz_y <czybove@qq.com>
2025-02-24 11:58:33 +00:00
czz_y
d21b65090a
update README.md.
Signed-off-by: czz_y <czybove@qq.com>
2025-02-24 11:57:12 +00:00
zhubanghao
a58aa03852 Merge branch 'master' of https://gitee.com/zhubanghao/antdui-demo 2025-02-20 16:43:25 +08:00
zhubanghao
b816b294c1 2025-02-11 10:12:03 +08:00
23 changed files with 805 additions and 120 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ bin-release/
/.vs
/packages
/Properties/PublishProfiles/
/.cr/personal/FavoritesList/List.xml

View File

@ -13,7 +13,7 @@
<Copyright>Copyright © 2025 czz_y</Copyright>
<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>
<Version>1.8.9</Version>
<Version>1.9.11</Version>
<Authors>czz_y</Authors>
<Description>基于 Winform UI 框架 AntdUI 设计的 Demo</Description>
<PackageProjectUrl>https://gitee.com/mubaiyanghua/antd-uidemo</PackageProjectUrl>
@ -30,7 +30,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="AntdUI" Version="1.8.9" />
<PackageReference Include="AntdUI" Version="1.9.12" />
<PackageReference Include="Costura.Fody" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

View File

@ -68,6 +68,8 @@ namespace AntdUIDemo.Languages
return "Gradient";
case "toggle":
return "Toggle";
case "animate":
return "Animate";
#endregion
#region FloatButton

10
MainWindow.Designer.cs generated
View File

@ -29,7 +29,7 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
AntdUI.Tabs.StyleCard styleCard2 = new AntdUI.Tabs.StyleCard();
AntdUI.Tabs.StyleCard styleCard1 = new AntdUI.Tabs.StyleCard();
this.titlebar = new AntdUI.PageHeader();
this.input_search = new AntdUI.Input();
this.dropdown_translate = new AntdUI.Dropdown();
@ -63,7 +63,7 @@
this.titlebar.Size = new System.Drawing.Size(1024, 40);
this.titlebar.SubText = "Demo";
this.titlebar.TabIndex = 0;
this.titlebar.Text = "AntdUI 1.8.9";
this.titlebar.Text = "AntdUI 1.9.12";
//
// input_search
//
@ -129,6 +129,7 @@
this.pageHeader1.Name = "pageHeader1";
this.pageHeader1.Size = new System.Drawing.Size(1024, 40);
this.pageHeader1.TabIndex = 7;
this.pageHeader1.UseLeftMargin = false;
//
// button_collapse
//
@ -146,6 +147,7 @@
//
// tabs
//
this.tabs.Controls.Add(this.tabPage);
this.tabs.Cursor = System.Windows.Forms.Cursors.Default;
this.tabs.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabs.Gap = 20;
@ -153,8 +155,8 @@
this.tabs.Name = "tabs";
this.tabs.Pages.Add(this.tabPage);
this.tabs.Size = new System.Drawing.Size(954, 560);
styleCard2.Closable = true;
this.tabs.Style = styleCard2;
styleCard1.Closable = true;
this.tabs.Style = styleCard1;
this.tabs.TabIndex = 9;
this.tabs.Type = AntdUI.TabType.Card;
//

View File

@ -47,7 +47,7 @@ namespace AntdUIDemo
//初始化消息弹出位置
Config.ShowInWindow = true;
UserControl control = new Wellcome { Dock = DockStyle.Fill };
UserControl control = new Wellcome(this) { Dock = DockStyle.Fill };
AutoDpi(control);
panel_content.Controls.Add(control);

View File

@ -18,7 +18,7 @@ namespace AntdUIDemo
AntdUI.Localization.DefaultLanguage = "zh-CN";
//若文字不清晰,切换其他渲染方式
AntdUI.Config.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
AntdUI.Config.SetCorrectionTextRendering("Microsoft YaHei UI");
AntdUI.Config.TextRenderingHighQuality = true;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

View File

@ -4,7 +4,7 @@
<h1>AntdUI Demo</h1>
This project is developed based on `Winform .NET Framework 4.8`, and is a demo project of [AntdUI](https://gitee.com/antdui/AntdUI), the current version is `1.8.9`
This project is developed based on `Winform .NET Framework 4.8`, and is a demo project of [AntdUI](https://gitee.com/antdui/AntdUI), the current version is `1.9.12`
</div>
@ -137,6 +137,8 @@ English | <a href="README.md">中文</a>
![Timeline](assets/screenshots/Timeline.png)
#### Tooltip
![Tooltip](assets/screenshots/Tooltip.png)
#### Tour
![Tour](assets/screenshots/Tour.png)
#### Tree
![Tree](assets/screenshots/Tree.png)

View File

@ -4,7 +4,7 @@
<h1>AntdUI Demo</h1>
本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.8.9`
本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.9.12`
</div>
@ -137,6 +137,8 @@
![Timeline](assets/screenshots/Timeline.png)
#### Tooltip 文字提示
![Tooltip](assets/screenshots/Tooltip.png)
#### Tour 漫游式引导
![Tour](assets/screenshots/Tour.png)
#### Tree 树形控件
![Tree](assets/screenshots/Tree.png)

View File

@ -105,6 +105,9 @@
this.button2 = new AntdUI.Button();
this.button1 = new AntdUI.Button();
this.label3 = new AntdUI.Label();
this.label1 = new AntdUI.Label();
this.flowPanel11 = new AntdUI.FlowPanel();
this.button_animate = new AntdUI.Button();
this.stackPanel1.SuspendLayout();
this.flowPanel8.SuspendLayout();
this.flowPanel7.SuspendLayout();
@ -118,6 +121,7 @@
this.flowPanel10.SuspendLayout();
this.flowPanel9.SuspendLayout();
this.flowPanel1.SuspendLayout();
this.flowPanel11.SuspendLayout();
this.SuspendLayout();
//
// header1
@ -139,6 +143,8 @@
// stackPanel1
//
this.stackPanel1.AutoScroll = true;
this.stackPanel1.Controls.Add(this.flowPanel11);
this.stackPanel1.Controls.Add(this.label1);
this.stackPanel1.Controls.Add(this.flowPanel8);
this.stackPanel1.Controls.Add(this.label10);
this.stackPanel1.Controls.Add(this.flowPanel7);
@ -162,7 +168,7 @@
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackPanel1.Location = new System.Drawing.Point(0, 74);
this.stackPanel1.Name = "stackPanel1";
this.stackPanel1.Size = new System.Drawing.Size(750, 840);
this.stackPanel1.Size = new System.Drawing.Size(750, 907);
this.stackPanel1.TabIndex = 1;
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
@ -1064,12 +1070,40 @@
this.label3.TabIndex = 5;
this.label3.Text = "按钮类型";
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.LocalizationText = "animate";
this.label1.Location = new System.Drawing.Point(3, 791);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(744, 24);
this.label1.TabIndex = 53;
this.label1.Text = "动画按钮";
//
// flowPanel11
//
this.flowPanel11.Controls.Add(this.button_animate);
this.flowPanel11.Location = new System.Drawing.Point(3, 821);
this.flowPanel11.Name = "flowPanel11";
this.flowPanel11.Size = new System.Drawing.Size(744, 44);
this.flowPanel11.TabIndex = 54;
this.flowPanel11.Text = "flowPanel11";
//
// button_animate
//
this.button_animate.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button_animate.Location = new System.Drawing.Point(3, 3);
this.button_animate.Name = "button_animate";
this.button_animate.Size = new System.Drawing.Size(80, 38);
this.button_animate.TabIndex = 1;
this.button_animate.Type = AntdUI.TTypeMini.Primary;
//
// ButtonDemo
//
this.Controls.Add(this.stackPanel1);
this.Controls.Add(this.header1);
this.Name = "ButtonDemo";
this.Size = new System.Drawing.Size(750, 914);
this.Size = new System.Drawing.Size(750, 981);
this.stackPanel1.ResumeLayout(false);
this.flowPanel8.ResumeLayout(false);
this.flowPanel7.ResumeLayout(false);
@ -1083,6 +1117,7 @@
this.flowPanel10.ResumeLayout(false);
this.flowPanel9.ResumeLayout(false);
this.flowPanel1.ResumeLayout(false);
this.flowPanel11.ResumeLayout(false);
this.ResumeLayout(false);
}
@ -1165,5 +1200,8 @@
private AntdUI.Button button49;
private AntdUI.Button button48;
private AntdUI.Button button_toggle3;
private AntdUI.Label label1;
private AntdUI.FlowPanel flowPanel11;
private AntdUI.Button button_animate;
}
}

View File

@ -24,6 +24,20 @@ namespace AntdUIDemo.Views
button_toggle.Click += Button_toggle_Click;
button_toggle2.Click += Button_toggle_Click;
button_toggle3.Click += Button_toggle_Click;
button_animate.Click += Button_animate_Click;
}
private void Button_animate_Click(object sender, EventArgs e)
{
if (button_animate.AnimationBlinkState)
{
button_animate.StopAnimationBlink();
}
else
{
button_animate.AnimationBlinkTransition(500,10, AntdUI.AnimationType.Ease, Color.FromArgb(255, 0, 0), Color.FromArgb(0, 255, 0), Color.FromArgb(0, 0, 255));
}
}
private void Button_toggle_Click(object sender, EventArgs e)

View File

@ -31,6 +31,9 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InputDemo));
this.header1 = new AntdUI.PageHeader();
this.stackPanel1 = new AntdUI.StackPanel();
this.flowPanel11 = new AntdUI.FlowPanel();
this.panel2 = new AntdUI.Panel();
this.label1 = new AntdUI.Label();
this.flowPanel10 = new AntdUI.FlowPanel();
this.input19 = new AntdUI.Input();
this.input22 = new AntdUI.Input();
@ -81,6 +84,7 @@
this.label3 = new AntdUI.Label();
this.tooltipComponent1 = new AntdUI.TooltipComponent();
this.stackPanel1.SuspendLayout();
this.flowPanel11.SuspendLayout();
this.flowPanel10.SuspendLayout();
this.flowPanel9.SuspendLayout();
this.flowPanel8.SuspendLayout();
@ -112,6 +116,8 @@
// stackPanel1
//
this.stackPanel1.AutoScroll = true;
this.stackPanel1.Controls.Add(this.flowPanel11);
this.stackPanel1.Controls.Add(this.label1);
this.stackPanel1.Controls.Add(this.flowPanel10);
this.stackPanel1.Controls.Add(this.label12);
this.stackPanel1.Controls.Add(this.flowPanel9);
@ -135,11 +141,37 @@
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackPanel1.Location = new System.Drawing.Point(0, 74);
this.stackPanel1.Name = "stackPanel1";
this.stackPanel1.Size = new System.Drawing.Size(750, 797);
this.stackPanel1.Size = new System.Drawing.Size(750, 936);
this.stackPanel1.TabIndex = 0;
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
// flowPanel11
//
this.flowPanel11.Controls.Add(this.panel2);
this.flowPanel11.Location = new System.Drawing.Point(3, 811);
this.flowPanel11.Name = "flowPanel11";
this.flowPanel11.Size = new System.Drawing.Size(744, 48);
this.flowPanel11.TabIndex = 33;
this.flowPanel11.Text = "flowPanel11";
//
// panel2
//
this.panel2.Location = new System.Drawing.Point(3, 3);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(406, 39);
this.panel2.TabIndex = 33;
this.panel2.Text = "panel2";
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(3, 781);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(744, 24);
this.label1.TabIndex = 31;
this.label1.Text = "Input+Popover+Table组合控件";
//
// flowPanel10
//
this.flowPanel10.Controls.Add(this.input19);
@ -665,8 +697,9 @@
this.Controls.Add(this.stackPanel1);
this.Controls.Add(this.header1);
this.Name = "InputDemo";
this.Size = new System.Drawing.Size(750, 871);
this.Size = new System.Drawing.Size(750, 1010);
this.stackPanel1.ResumeLayout(false);
this.flowPanel11.ResumeLayout(false);
this.flowPanel10.ResumeLayout(false);
this.flowPanel9.ResumeLayout(false);
this.flowPanel8.ResumeLayout(false);
@ -736,5 +769,8 @@
private AntdUI.Input input19;
private AntdUI.Input input22;
private AntdUI.Input input23;
private AntdUI.Label label1;
private AntdUI.FlowPanel flowPanel11;
private AntdUI.Panel panel2;
}
}

View File

@ -1,5 +1,7 @@
using AntdUI;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
@ -13,6 +15,7 @@ namespace AntdUIDemo.Views
InitializeComponent();
// 绑定事件
BindEventHandler();
InitInputTable();
}
private void BindEventHandler()
@ -61,5 +64,73 @@ namespace AntdUIDemo.Views
}
return true;
}
#region Input+Popover+Table
Form form;
/// <summary>
/// 小蚂蚁QQ:897252348
/// </summary>
private void InitInputTable()
{
var customerInput = new InputTable<Customer>
{
Dock = DockStyle.Fill,
Columns =
{
new Column("Code", "客户编号"),
new Column("Name", "客户名称"),
new Column("Address", "联系地址")
},
DisplayTextFormatter = c => $"{c.Code} - {c.Name}",
DataSource = GetCustomers()
};
customerInput.SelectedItemChanged += (s, e) =>
{
if (customerInput.SelectedItem != null)
{
AntdUI.Message.info(form, $"选中客户:{customerInput.SelectedItem.Code}", autoClose: 3);
}
};
customerInput.SearchButtonClick += (s, e) =>
{
if (customerInput.SelectedItem != null)
{
AntdUI.Message.success(form, $"选中客户:{customerInput.SelectedItem.Code}", autoClose: 3);
}
};
customerInput.Size = new Size(300, 50);
customerInput.Location = new Point(label1.Location.X, label1.Location.Y+20);
panel2.Controls.Add(customerInput);
}
//集合
List<Customer> GetCustomers()
{
var customers = new List<Customer>();
for (int i = 0; i < 100; i++)
{
customers.Add(new Customer
{
Address = $"地址{i}",
Code = i.ToString(),
Name = $"名字{i}",
});
}
return customers;
}
// 定义实体类
public class Customer
{
public string Code { get; set; }
public string Name { get; set; }
public string Address { get; set; }
}
#endregion
}
}

View File

@ -29,13 +29,13 @@
private void InitializeComponent()
{
this.header1 = new AntdUI.PageHeader();
this.splitter1 = new AntdUI.Splitter();
this.button1 = new AntdUI.Button();
this.button2 = new AntdUI.Button();
((System.ComponentModel.ISupportInitialize)(this.splitter1)).BeginInit();
this.splitter1.Panel1.SuspendLayout();
this.splitter1.Panel2.SuspendLayout();
this.splitter1.SuspendLayout();
this.splitter = new AntdUI.Splitter();
this.button3 = new AntdUI.Button();
this.button4 = new AntdUI.Button();
((System.ComponentModel.ISupportInitialize)(this.splitter)).BeginInit();
this.splitter.Panel1.SuspendLayout();
this.splitter.Panel2.SuspendLayout();
this.splitter.SuspendLayout();
this.SuspendLayout();
//
// header1
@ -52,57 +52,61 @@
this.header1.Text = "Splitter 分隔面板";
this.header1.UseTitleFont = true;
//
// splitter1
// splitter
//
this.splitter1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitter1.Location = new System.Drawing.Point(0, 74);
this.splitter1.Name = "splitter1";
this.splitter.CollapsePanel = AntdUI.Splitter.ADCollapsePanel.Panel1;
this.splitter.Cursor = System.Windows.Forms.Cursors.Default;
this.splitter.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter.Location = new System.Drawing.Point(0, 74);
this.splitter.Name = "splitter";
//
// splitter1.Panel1
// splitter.Panel1
//
this.splitter1.Panel1.Controls.Add(this.button1);
this.splitter.Panel1.Controls.Add(this.button3);
this.splitter.Panel1MinSize = 0;
//
// splitter1.Panel2
// splitter.Panel2
//
this.splitter1.Panel2.Controls.Add(this.button2);
this.splitter1.Size = new System.Drawing.Size(750, 457);
this.splitter1.SplitterDistance = 264;
this.splitter1.SplitterSize = 30;
this.splitter1.TabIndex = 31;
this.splitter.Panel2.Controls.Add(this.button4);
this.splitter.Size = new System.Drawing.Size(750, 209);
this.splitter.SplitterDistance = 262;
this.splitter.SplitterSize = 30;
this.splitter.SplitterWidth = 10;
this.splitter.TabIndex = 32;
//
// button1
// button3
//
this.button1.Dock = System.Windows.Forms.DockStyle.Top;
this.button1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(0, 0);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(264, 45);
this.button1.TabIndex = 0;
this.button1.Text = "Button";
this.button1.Type = AntdUI.TTypeMini.Primary;
this.button3.Dock = System.Windows.Forms.DockStyle.Top;
this.button3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(0, 0);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(262, 45);
this.button3.TabIndex = 0;
this.button3.Text = "Button";
this.button3.Type = AntdUI.TTypeMini.Primary;
//
// button2
// button4
//
this.button2.Dock = System.Windows.Forms.DockStyle.Top;
this.button2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(0, 0);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(482, 45);
this.button2.TabIndex = 1;
this.button2.Text = "Button";
this.button2.Type = AntdUI.TTypeMini.Warn;
this.button4.Dock = System.Windows.Forms.DockStyle.Top;
this.button4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button4.Location = new System.Drawing.Point(0, 0);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(478, 45);
this.button4.TabIndex = 1;
this.button4.Text = "Button";
this.button4.Type = AntdUI.TTypeMini.Warn;
//
// SplitterDemo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.splitter1);
this.Controls.Add(this.splitter);
this.Controls.Add(this.header1);
this.Name = "SplitterDemo";
this.Size = new System.Drawing.Size(750, 531);
this.splitter1.Panel1.ResumeLayout(false);
this.splitter1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitter1)).EndInit();
this.splitter1.ResumeLayout(false);
this.splitter.Panel1.ResumeLayout(false);
this.splitter.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitter)).EndInit();
this.splitter.ResumeLayout(false);
this.ResumeLayout(false);
}
@ -110,8 +114,8 @@
#endregion
private AntdUI.PageHeader header1;
private AntdUI.Splitter splitter1;
private AntdUI.Button button1;
private AntdUI.Button button2;
private AntdUI.Splitter splitter;
private AntdUI.Button button4;
private AntdUI.Button button3;
}
}

83
Views/SubView/InputTable.Designer.cs generated Normal file
View File

@ -0,0 +1,83 @@
using System.Drawing;
using System.Windows.Forms;
namespace AntdUIDemo
{
partial class InputTable<T>
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
#region
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.InputSearch = new AntdUI.Panel();
this.txtSearch = new AntdUI.Input();
this.btnSearch = new AntdUI.Button();
this.InputSearch.SuspendLayout();
this.SuspendLayout();
//
// InputSearch
//
this.InputSearch.Controls.Add(this.txtSearch);
this.InputSearch.Controls.Add(this.btnSearch);
this.InputSearch.Dock = System.Windows.Forms.DockStyle.Fill;
this.InputSearch.Location = new System.Drawing.Point(0, 0);
this.InputSearch.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.InputSearch.Name = "InputSearch";
this.InputSearch.Size = new System.Drawing.Size(255, 37);
this.InputSearch.TabIndex = 3;
this.InputSearch.Text = "panel1";
//
// txtSearch
//
this.txtSearch.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtSearch.IconRatio = 1F;
this.txtSearch.Location = new System.Drawing.Point(0, 0);
this.txtSearch.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtSearch.Name = "txtSearch";
this.txtSearch.PlaceholderText = "输入点什么搜索";
this.txtSearch.Size = new System.Drawing.Size(216, 37);
this.txtSearch.SuffixSvg = "";
this.txtSearch.TabIndex = 0;
//
// btnSearch
//
this.btnSearch.Dock = System.Windows.Forms.DockStyle.Right;
this.btnSearch.IconRatio = 1F;
this.btnSearch.IconSvg = "SearchOutlined";
this.btnSearch.Location = new System.Drawing.Point(216, 0);
this.btnSearch.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(39, 37);
this.btnSearch.TabIndex = 1;
this.btnSearch.Type = AntdUI.TTypeMini.Info;
//
// InputTable
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.InputSearch);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "InputTable";
this.Size = new System.Drawing.Size(255, 37);
this.InputSearch.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private AntdUI.Panel InputSearch;
private AntdUI.Input txtSearch;
private AntdUI.Button btnSearch;
}
}

263
Views/SubView/InputTable.cs Normal file
View File

@ -0,0 +1,263 @@
using AntdUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
namespace AntdUIDemo
{
/// <summary>
/// InputTable泛型控件
/// </summary>
/// <typeparam name="T"></typeparam>
public partial class InputTable<T> : UserControl where T : class
{
#region
private Table _table;
private Form _popover;
private T _selectedItem;
#endregion
#region
/// <summary>
/// 数据源集合
/// </summary>
[Category("Data")]
[Description("数据源集合")]
public List<T> DataSource { get; set; } = new List<T>();
/// <summary>
/// 列配置集合
/// </summary>
[Category("Data")]
[Description("列配置集合")]
public ColumnCollection Columns { get; set; } = new ColumnCollection();
/// <summary>
/// 搜索框占位符文本
/// </summary>
[Category("Behavior")]
[Description("搜索框占位符文本")]
public string PlaceholderText
{
get => txtSearch.PlaceholderText;
set => txtSearch.PlaceholderText = value;
}
/// <summary>
/// 当前选中的对象
/// </summary>
[Browsable(false)]
public T SelectedItem
{
get => _selectedItem;
private set
{
if (EqualityComparer<T>.Default.Equals(_selectedItem, value)) return;
_selectedItem = value;
SelectedItemChanged?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// 显示文本格式化委托
/// </summary>
[Category("Behavior")]
[Description("显示文本格式化委托")]
public Func<T, string> DisplayTextFormatter { get; set; }
#endregion
#region
/// <summary>
///
/// </summary>
public event EventHandler SelectedItemChanged;
/// <summary>
///
/// </summary>
public event EventHandler SearchButtonClick;
#endregion
#region
public InputTable()
{
InitializeComponent();
txtSearch.TextChanged += TxtSearch_TextChanged;
btnSearch.Click += BtnSearch_Click;
InitializeTable();
}
#endregion
#region
private void InitializeTable()
{
if (DesignMode) return;
_table = new Table
{
Columns = Columns,
Size = new Size(txtSearch.Width, 300),
Font = new Font("Microsoft YaHei UI", 9f)
};
_table.CellDoubleClick += Table_CellDoubleClick;
}
#endregion
#region
/// <summary>
/// 更新Table数据源
/// </summary>
private void UpdateTableDataSource()
{
if (_table == null || _table.IsDisposed) return;
var filtered = (List<T>)ApplySearchFilter(DataSource).ToList();
_table.DataSource = filtered;
}
private IEnumerable<T> ApplySearchFilter(IEnumerable<T> source)
{
if (string.IsNullOrWhiteSpace(txtSearch.Text))
return source;
return source.Where(item => Columns.Any(col =>
{
var propValue = GetPropertyValue(item, col.Key);
return propValue.ToString().Contains(txtSearch.Text) ;
})
);
}
private object GetPropertyValue(T item, string propertyName)
{
return item.GetType()
.GetProperty(propertyName, BindingFlags.Public | BindingFlags.Instance | BindingFlags.IgnoreCase)?
.GetValue(item);
}
#endregion
#region
private void TxtSearch_TextChanged(object sender, EventArgs e)
{
if (_popover == null)
{
if (_table == null || _table.IsDisposed) InitializeTable();
UpdateTableDataSource();
ShowPopover();
}
else
{
UpdateTableDataSource();
}
}
/// <summary>
/// 获取当前对象
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BtnSearch_Click(object sender, EventArgs e)
{
SearchButtonClick?.Invoke(this, e);
}
/// <summary>
/// Table双击
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Table_CellDoubleClick(object sender, TableClickEventArgs e)
{
if (e.Record is T selected)
{
SelectedItem = selected;
UpdateSearchText(selected);
ClosePopover();
}
}
/// <summary>
/// 释放
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Popover_Disposed(object sender, EventArgs e)
{
_popover = null;
}
#endregion
#region UI控制方法
private void ShowPopover()
{
if (_table == null) return;
// 动态获取实际宽度
var controlWidth = txtSearch.Width > 10 ? txtSearch.Width : 200; // 设置默认最小值
_table.Size = new Size(controlWidth, 300);
_popover = Popover.open(new Popover.Config(txtSearch, _table)
{
OnControlLoad = () => BeginInvoke(new Action(() =>
{
txtSearch.Focus();
txtSearch.SelectAll();
}))
});
_popover.Disposed += Popover_Disposed;
}
protected override void OnLayout(LayoutEventArgs e)
{
base.OnLayout(e);
// 布局变化时同步表格尺寸
if (_table != null && !_table.IsDisposed)
{
_table.Width = txtSearch.Width;
}
}
private void ClosePopover()
{
_popover?.Close();
_popover = null;
}
private void UpdateSearchText(T item)
{
txtSearch.Text = DisplayTextFormatter?.Invoke(item) ?? item.ToString();
}
#endregion
#region
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
_table?.Dispose();
ClosePopover();
}
base.Dispose(disposing);
}
#endregion
}
}

View File

@ -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>

View File

@ -40,7 +40,6 @@
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(750, 150);
this.label1.TabIndex = 0;
this.label1.Text = "欢迎使用 AntdUI Demo";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Wellcome
@ -48,6 +47,7 @@
this.Controls.Add(this.label1);
this.Name = "Wellcome";
this.Size = new System.Drawing.Size(750, 150);
this.Load += new System.EventHandler(this.Wellcome_Load);
this.ResumeLayout(false);
}

View File

@ -1,12 +1,35 @@
using System.Windows.Forms;
using AntdUI;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
namespace AntdUIDemo.Views.SubView
{
public partial class Wellcome : UserControl
{
public Wellcome()
private AntdUI.Window window;
public Wellcome(AntdUI.Window _window)
{
window = _window;
InitializeComponent();
}
private void Wellcome_Load(object sender, System.EventArgs e)
{
AntdUI.Spin.open(window, new AntdUI.Spin.Config()
{
Radius = 6,
Font = new Font("Microsoft YaHei UI", 12f),//字体可以控制进度圈的大小
}, (config) =>
{
config.Text = "LOADING...";
//耗时代码,处理数据
Thread.Sleep(1000);
}, () =>
{
//结束时执行的代码
label1.Text = "欢迎使用 AntdUI Demo";
});
}
}
}

View File

@ -72,22 +72,22 @@
this.stackPanel1.Name = "stackPanel1";
this.stackPanel1.Padding = new System.Windows.Forms.Padding(3);
this.stackPanel1.Radius = 0;
this.stackPanel1.Size = new System.Drawing.Size(750, 526);
this.stackPanel1.Size = new System.Drawing.Size(750, 565);
this.stackPanel1.TabIndex = 0;
this.stackPanel1.Text = "stackPanel1";
//
// table_base
//
this.table_base.Dock = System.Windows.Forms.DockStyle.Top;
this.table_base.AutoSizeColumnsMode = AntdUI.ColumnsMode.Fill;
this.table_base.Dock = System.Windows.Forms.DockStyle.Fill;
this.table_base.EmptyHeader = true;
this.table_base.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.table_base.Gap = 8;
this.table_base.Location = new System.Drawing.Point(3, 103);
this.table_base.MultipleRows = true;
this.table_base.Name = "table_base";
this.table_base.SelectedIndexs = new int[0];
this.table_base.ShowTip = false;
this.table_base.Size = new System.Drawing.Size(744, 417);
this.table_base.Size = new System.Drawing.Size(744, 459);
this.table_base.TabIndex = 30;
this.table_base.Text = "table1";
//
@ -108,7 +108,6 @@
//
// checkbox_sort
//
this.checkbox_sort.AutoCheck = true;
this.checkbox_sort.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.checkbox_sort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.checkbox_sort.Location = new System.Drawing.Point(467, 0);
@ -120,7 +119,6 @@
//
// checkbox_rowstyle
//
this.checkbox_rowstyle.AutoCheck = true;
this.checkbox_rowstyle.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.checkbox_rowstyle.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.checkbox_rowstyle.Location = new System.Drawing.Point(388, 0);
@ -132,7 +130,6 @@
//
// checkbox_border
//
this.checkbox_border.AutoCheck = true;
this.checkbox_border.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.checkbox_border.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.checkbox_border.Location = new System.Drawing.Point(285, 0);
@ -144,7 +141,6 @@
//
// checkbox_columndragsort
//
this.checkbox_columndragsort.AutoCheck = true;
this.checkbox_columndragsort.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.checkbox_columndragsort.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.checkbox_columndragsort.Location = new System.Drawing.Point(182, 0);
@ -156,7 +152,6 @@
//
// checkbox_visibleheader
//
this.checkbox_visibleheader.AutoCheck = true;
this.checkbox_visibleheader.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.checkbox_visibleheader.Checked = true;
this.checkbox_visibleheader.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
@ -169,7 +164,6 @@
//
// checkbox_fixheader
//
this.checkbox_fixheader.AutoCheck = true;
this.checkbox_fixheader.AutoSizeMode = AntdUI.TAutoSize.Auto;
this.checkbox_fixheader.Checked = true;
this.checkbox_fixheader.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
@ -228,7 +222,7 @@
this.Controls.Add(this.stackPanel1);
this.Controls.Add(this.header1);
this.Name = "TableDemo";
this.Size = new System.Drawing.Size(750, 600);
this.Size = new System.Drawing.Size(750, 639);
this.stackPanel1.ResumeLayout(false);
this.flowPanel1.ResumeLayout(false);
this.flowPanel1.PerformLayout();

View File

@ -28,6 +28,11 @@ namespace AntdUIDemo.Views
private void InitTableColumns()
{
table_base.Columns = new ColumnCollection() {
new Column("","序号"){
Width = "50",
Render = (value,record,rowindex)=>{return (rowindex+1); },
Fixed = true,//冻结列
},
new ColumnCheck("Selected"){Fixed = true},
new Column("Name", "姓名", ColumnAlign.Center)
{
@ -58,10 +63,15 @@ namespace AntdUIDemo.Views
},
new Column("CellProgress", "进度条",ColumnAlign.Center),
new Column("CellDivider", "分割线",ColumnAlign.Center),
new Column("CellLinks", "链接", ColumnAlign.Center)
new Column("CellLinks", "链接", ColumnAlign.Center),
};
//设置多表头
table_base.StackedHeaderRows = new StackedHeaderRow[]
{
Fixed = true,//冻结列
},
new StackedHeaderRow(
new AntdUI.StackedColumn("Name,Address","个人信息").SetForeColor(Color.Red),
new AntdUI.StackedColumn("CellImages,CellTags","图标"))
};
}
@ -79,6 +89,20 @@ namespace AntdUIDemo.Views
table_base.CellClick += Table_base_CellClick;
table_base.CellButtonClick += Table_base_CellButtonClick;
table_base.CellPaint += Table_base_CellPaint;
}
private void Table_base_CellPaint(object sender, TablePaintEventArgs e)
{
if (e.Index == 4 && e.RowIndex == 2)
{
e.g.Fill(Color.FromArgb(80, 0, 255, 0), e.Rect);
}
else if (e.Index == 4 && e.RowIndex == 6)
{
int size = (int)(14 * AntdUI.Config.Dpi);
e.g.FillPolygon(Brushes.Red, new Point[] { new Point(e.Rect.X, e.Rect.Y), new Point(e.Rect.X + size, e.Rect.Y), new Point(e.Rect.X, e.Rect.Y + size) });
}
}
private void Checkbox_rowstyle_CheckedChanged(object sender, BoolEventArgs e)
@ -447,6 +471,11 @@ namespace AntdUIDemo.Views
//设置行禁用
table_base.SetRowEnable(0, false, true);
//竖向合并单元格
table_base.AddMergedRegion(new CellRange(2, 4, 3, 3));
//横向合并单元格
table_base.AddMergedRegion(new CellRange(5, 5, 1, 3));
}
}
}

View File

@ -28,11 +28,11 @@
/// </summary>
private void InitializeComponent()
{
AntdUI.Tabs.StyleLine styleLine4 = new AntdUI.Tabs.StyleLine();
AntdUI.Tabs.StyleLine styleLine1 = new AntdUI.Tabs.StyleLine();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TabsDemo));
AntdUI.Tabs.StyleLine styleLine5 = new AntdUI.Tabs.StyleLine();
AntdUI.Tabs.StyleCard styleCard2 = new AntdUI.Tabs.StyleCard();
AntdUI.Tabs.StyleLine styleLine6 = new AntdUI.Tabs.StyleLine();
AntdUI.Tabs.StyleLine styleLine2 = new AntdUI.Tabs.StyleLine();
AntdUI.Tabs.StyleCard styleCard1 = new AntdUI.Tabs.StyleCard();
AntdUI.Tabs.StyleLine styleLine3 = new AntdUI.Tabs.StyleLine();
this.stackPanel1 = new AntdUI.StackPanel();
this.tabs_typeexceed = new AntdUI.Tabs();
this.tabPage10 = new AntdUI.TabPage();
@ -118,6 +118,19 @@
//
// tabs_typeexceed
//
this.tabs_typeexceed.Controls.Add(this.tabPage10);
this.tabs_typeexceed.Controls.Add(this.tabPage11);
this.tabs_typeexceed.Controls.Add(this.tabPage12);
this.tabs_typeexceed.Controls.Add(this.tabPage13);
this.tabs_typeexceed.Controls.Add(this.tabPage14);
this.tabs_typeexceed.Controls.Add(this.tabPage15);
this.tabs_typeexceed.Controls.Add(this.tabPage16);
this.tabs_typeexceed.Controls.Add(this.tabPage17);
this.tabs_typeexceed.Controls.Add(this.tabPage18);
this.tabs_typeexceed.Controls.Add(this.tabPage19);
this.tabs_typeexceed.Controls.Add(this.tabPage20);
this.tabs_typeexceed.Controls.Add(this.tabPage21);
this.tabs_typeexceed.Controls.Add(this.tabPage22);
this.tabs_typeexceed.Cursor = System.Windows.Forms.Cursors.Default;
this.tabs_typeexceed.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs_typeexceed.Gap = 12;
@ -137,7 +150,7 @@
this.tabs_typeexceed.Pages.Add(this.tabPage21);
this.tabs_typeexceed.Pages.Add(this.tabPage22);
this.tabs_typeexceed.Size = new System.Drawing.Size(744, 88);
this.tabs_typeexceed.Style = styleLine4;
this.tabs_typeexceed.Style = styleLine1;
this.tabs_typeexceed.TabIndex = 35;
this.tabs_typeexceed.Text = "tabs2";
this.tabs_typeexceed.TypExceed = AntdUI.TabTypExceed.None;
@ -145,7 +158,6 @@
// tabPage10
//
this.tabPage10.Controls.Add(this.label16);
this.tabPage10.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabPage10.IconSvg = resources.GetString("tabPage10.IconSvg");
this.tabPage10.Location = new System.Drawing.Point(3, 38);
@ -165,7 +177,6 @@
//
// tabPage11
//
this.tabPage11.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage11.Location = new System.Drawing.Point(0, 0);
this.tabPage11.Name = "tabPage11";
this.tabPage11.Size = new System.Drawing.Size(0, 0);
@ -174,8 +185,7 @@
//
// tabPage12
//
this.tabPage12.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage12.Location = new System.Drawing.Point(3, 38);
this.tabPage12.Location = new System.Drawing.Point(-688, -47);
this.tabPage12.Name = "tabPage12";
this.tabPage12.Size = new System.Drawing.Size(688, 47);
this.tabPage12.TabIndex = 0;
@ -183,7 +193,6 @@
//
// tabPage13
//
this.tabPage13.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage13.Location = new System.Drawing.Point(0, 0);
this.tabPage13.Name = "tabPage13";
this.tabPage13.Size = new System.Drawing.Size(0, 0);
@ -192,7 +201,6 @@
//
// tabPage14
//
this.tabPage14.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage14.Location = new System.Drawing.Point(0, 0);
this.tabPage14.Name = "tabPage14";
this.tabPage14.Size = new System.Drawing.Size(0, 0);
@ -201,7 +209,6 @@
//
// tabPage15
//
this.tabPage15.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage15.Location = new System.Drawing.Point(0, 0);
this.tabPage15.Name = "tabPage15";
this.tabPage15.Size = new System.Drawing.Size(0, 0);
@ -210,7 +217,6 @@
//
// tabPage16
//
this.tabPage16.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage16.Location = new System.Drawing.Point(0, 0);
this.tabPage16.Name = "tabPage16";
this.tabPage16.Size = new System.Drawing.Size(0, 0);
@ -219,7 +225,6 @@
//
// tabPage17
//
this.tabPage17.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage17.Location = new System.Drawing.Point(0, 0);
this.tabPage17.Name = "tabPage17";
this.tabPage17.Size = new System.Drawing.Size(0, 0);
@ -228,8 +233,7 @@
//
// tabPage18
//
this.tabPage18.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage18.Location = new System.Drawing.Point(3, 38);
this.tabPage18.Location = new System.Drawing.Point(-688, -47);
this.tabPage18.Name = "tabPage18";
this.tabPage18.Size = new System.Drawing.Size(688, 47);
this.tabPage18.TabIndex = 0;
@ -237,8 +241,7 @@
//
// tabPage19
//
this.tabPage19.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage19.Location = new System.Drawing.Point(3, 38);
this.tabPage19.Location = new System.Drawing.Point(-688, -47);
this.tabPage19.Name = "tabPage19";
this.tabPage19.Size = new System.Drawing.Size(688, 47);
this.tabPage19.TabIndex = 0;
@ -246,8 +249,7 @@
//
// tabPage20
//
this.tabPage20.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage20.Location = new System.Drawing.Point(3, 38);
this.tabPage20.Location = new System.Drawing.Point(-688, -47);
this.tabPage20.Name = "tabPage20";
this.tabPage20.Size = new System.Drawing.Size(688, 47);
this.tabPage20.TabIndex = 0;
@ -255,7 +257,6 @@
//
// tabPage21
//
this.tabPage21.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage21.Location = new System.Drawing.Point(0, 0);
this.tabPage21.Name = "tabPage21";
this.tabPage21.Size = new System.Drawing.Size(0, 0);
@ -264,7 +265,6 @@
//
// tabPage22
//
this.tabPage22.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage22.Location = new System.Drawing.Point(0, 0);
this.tabPage22.Name = "tabPage22";
this.tabPage22.Size = new System.Drawing.Size(0, 0);
@ -312,6 +312,9 @@
// tabs3
//
this.tabs3.Centered = true;
this.tabs3.Controls.Add(this.tabPage5);
this.tabs3.Controls.Add(this.tabPage8);
this.tabs3.Controls.Add(this.tabPage9);
this.tabs3.Cursor = System.Windows.Forms.Cursors.Hand;
this.tabs3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs3.Gap = 12;
@ -321,7 +324,7 @@
this.tabs3.Pages.Add(this.tabPage8);
this.tabs3.Pages.Add(this.tabPage9);
this.tabs3.Size = new System.Drawing.Size(744, 120);
this.tabs3.Style = styleLine5;
this.tabs3.Style = styleLine2;
this.tabs3.TabIndex = 29;
this.tabs3.Text = "tabs3";
//
@ -329,7 +332,6 @@
//
this.tabPage5.Badge = "99";
this.tabPage5.Controls.Add(this.label10);
this.tabPage5.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabPage5.IconSvg = resources.GetString("tabPage5.IconSvg");
this.tabPage5.Location = new System.Drawing.Point(3, 38);
@ -350,9 +352,8 @@
// tabPage8
//
this.tabPage8.Controls.Add(this.label13);
this.tabPage8.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage8.Location = new System.Drawing.Point(3, 38);
this.tabPage8.Location = new System.Drawing.Point(-688, -89);
this.tabPage8.Name = "tabPage8";
this.tabPage8.Size = new System.Drawing.Size(688, 89);
this.tabPage8.TabIndex = 0;
@ -371,9 +372,8 @@
// tabPage9
//
this.tabPage9.Controls.Add(this.label14);
this.tabPage9.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage9.Location = new System.Drawing.Point(3, 38);
this.tabPage9.Location = new System.Drawing.Point(-688, -89);
this.tabPage9.Name = "tabPage9";
this.tabPage9.Size = new System.Drawing.Size(688, 89);
this.tabPage9.TabIndex = 0;
@ -400,6 +400,9 @@
//
// tabs_close
//
this.tabs_close.Controls.Add(this.tabPage2);
this.tabs_close.Controls.Add(this.tabPage3);
this.tabs_close.Controls.Add(this.tabPage4);
this.tabs_close.Cursor = System.Windows.Forms.Cursors.Hand;
this.tabs_close.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs_close.Gap = 12;
@ -409,9 +412,9 @@
this.tabs_close.Pages.Add(this.tabPage3);
this.tabs_close.Pages.Add(this.tabPage4);
this.tabs_close.Size = new System.Drawing.Size(744, 120);
styleCard2.Closable = true;
styleCard2.Gap = 6;
this.tabs_close.Style = styleCard2;
styleCard1.Closable = true;
styleCard1.Gap = 6;
this.tabs_close.Style = styleCard1;
this.tabs_close.TabIndex = 26;
this.tabs_close.Text = "tabs2";
this.tabs_close.Type = AntdUI.TabType.Card;
@ -419,7 +422,6 @@
// tabPage2
//
this.tabPage2.Controls.Add(this.label12);
this.tabPage2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage2.Location = new System.Drawing.Point(3, 38);
this.tabPage2.Name = "tabPage2";
@ -440,9 +442,8 @@
// tabPage3
//
this.tabPage3.Controls.Add(this.label11);
this.tabPage3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage3.Location = new System.Drawing.Point(3, 38);
this.tabPage3.Location = new System.Drawing.Point(-688, -89);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(688, 89);
this.tabPage3.TabIndex = 0;
@ -461,9 +462,8 @@
// tabPage4
//
this.tabPage4.Controls.Add(this.label8);
this.tabPage4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage4.Location = new System.Drawing.Point(3, 38);
this.tabPage4.Location = new System.Drawing.Point(-688, -89);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(688, 89);
this.tabPage4.TabIndex = 0;
@ -490,7 +490,10 @@
//
// tabs1
//
this.tabs1.Cursor = System.Windows.Forms.Cursors.Default;
this.tabs1.Controls.Add(this.tabPage1);
this.tabs1.Controls.Add(this.tabPage6);
this.tabs1.Controls.Add(this.tabPage7);
this.tabs1.Cursor = System.Windows.Forms.Cursors.Hand;
this.tabs1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs1.Gap = 12;
this.tabs1.Location = new System.Drawing.Point(3, 33);
@ -499,14 +502,13 @@
this.tabs1.Pages.Add(this.tabPage6);
this.tabs1.Pages.Add(this.tabPage7);
this.tabs1.Size = new System.Drawing.Size(744, 120);
this.tabs1.Style = styleLine6;
this.tabs1.Style = styleLine3;
this.tabs1.TabIndex = 23;
this.tabs1.Text = "tabs1";
//
// tabPage1
//
this.tabPage1.Controls.Add(this.label4);
this.tabPage1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabPage1.IconSvg = resources.GetString("tabPage1.IconSvg");
this.tabPage1.Location = new System.Drawing.Point(3, 38);
@ -527,8 +529,7 @@
// tabPage6
//
this.tabPage6.Controls.Add(this.label5);
this.tabPage6.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage6.Location = new System.Drawing.Point(3, 38);
this.tabPage6.Location = new System.Drawing.Point(-688, -89);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Size = new System.Drawing.Size(688, 89);
this.tabPage6.TabIndex = 0;
@ -547,8 +548,8 @@
// tabPage7
//
this.tabPage7.Controls.Add(this.label6);
this.tabPage7.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage7.Location = new System.Drawing.Point(3, 38);
this.tabPage7.Enabled = false;
this.tabPage7.Location = new System.Drawing.Point(-738, -79);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Size = new System.Drawing.Size(738, 79);
this.tabPage7.TabIndex = 0;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 436 KiB

After

Width:  |  Height:  |  Size: 254 KiB