From 6b7f640c7952a3948b896d4c585d416f546788a1 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 17 七月 2025 08:17:12 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/UserControl/ShowUp.cs | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/ShowUp.cs b/DevApp/Gs.DevApp/UserControl/ShowUp.cs index cdf9bcf..96a5f77 100644 --- a/DevApp/Gs.DevApp/UserControl/ShowUp.cs +++ b/DevApp/Gs.DevApp/UserControl/ShowUp.cs @@ -1,12 +1,9 @@ -锘縰sing CefSharp; -using DevExpress.XtraEditors; +锘縰sing DevExpress.XtraEditors; using Gs.DevApp.ToolBox; using System; using System.Collections.Generic; using System.Configuration; -using System.Data; using System.Net; -using System.Windows.Documents; using System.Windows.Forms; namespace Gs.DevApp.UserControl @@ -33,7 +30,6 @@ this.parentGuid = _parentGuid; this.ucUpFile1.parentGuid = _parentGuid; ucUpFile1.UpChanged += UcUpFile1_UpChanged; - getBtn(); } @@ -69,16 +65,22 @@ xls = "003鐗╂枡妫�楠岄」鐩�.xls" }); + lst.Add(new + { + btnTxt = "宸ュ崟鍚庣洊鐮乗nXLS妯℃澘", + xls = "004宸ュ崟鍚庣洊鐮�.xls" + }); + foreach (var obj in lst) { SimpleButton btn = new DevExpress.XtraEditors.SimpleButton(); btn.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.printarea_32x32; btn.ImageOptions.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.TopCenter; btn.Name = Guid.NewGuid().ToString(); - btn.Size = new System.Drawing.Size(120, 120); + btn.Size = new System.Drawing.Size(180, 140); btn.TabIndex = 1; btn.Text = obj.btnTxt; - btn.Margin = new System.Windows.Forms.Padding(10); + btn.Margin = new System.Windows.Forms.Padding(5); btn.Tag = obj.xls; this.flowLayoutPanel1.Controls.Add(btn); btn.Click += Btn_Click; -- Gitblit v1.9.3