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(); } }