From 5a098a108b785e0ae1a6583f6b63fa5524a26c74 Mon Sep 17 00:00:00 2001 From: czz_y Date: Tue, 31 Dec 2024 08:33:11 +0800 Subject: [PATCH] =?UTF-8?q?GridPanel=E5=AE=B9=E5=99=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E9=A1=BA=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Views/GridPanelDemo.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Views/GridPanelDemo.cs b/Views/GridPanelDemo.cs index a52166e..851fd77 100644 --- a/Views/GridPanelDemo.cs +++ b/Views/GridPanelDemo.cs @@ -46,15 +46,17 @@ namespace AntdUIDemo.Views gridPanel.Span = spantext; gridPanel.Gap = (int)gap; string[] array = spantext.Split(';', ' ', '\n'); - for (int i = 0; i < array.Length; i++) + for (int i = 1; i < array.Length + 1; i++) { - gridPanel.Controls.Add(new AntdUI.Button() + var control = new AntdUI.Button() { - Text = "Button", + Text = "Button" + i, Type = TTypeMini.Primary, WaveSize = 0, Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), - }); + }; + gridPanel.Controls.Add(control); + control.BringToFront(); } }