From 9be9ba4e159969fb5e32648c2c34e912ccc3ae6d Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期五, 28 三月 2025 14:22:42 +0800 Subject: [PATCH] 优化细节问题 --- WinFrmUI/IBox.WinFrmUI/Form/IBoxFormOverview.cs | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/WinFrmUI/IBox.WinFrmUI/Form/IBoxFormOverview.cs b/WinFrmUI/IBox.WinFrmUI/Form/IBoxFormOverview.cs index 834cece..5bf6c54 100644 --- a/WinFrmUI/IBox.WinFrmUI/Form/IBoxFormOverview.cs +++ b/WinFrmUI/IBox.WinFrmUI/Form/IBoxFormOverview.cs @@ -1,20 +1,18 @@ -锘縰sing System.Data; -using Yw; -using Yw.WinFrmUI; +锘縰sing Yw.WinFrmUI; namespace IBox.WinFrmUI { public partial class IBoxFormOverview : DocumentPage { - private string startCode = "[&start&]"; - private string endCode = "[&end&]"; - private string paramCode = "[¶m&]"; - private string getbaseCode = "getbase"; - private string getrealrecordCode = "getrealrecord"; - private string gethistoryrecordCode = "gethistoryrecord"; - private string getalarmbydayCode = "getalarmbyday"; - private string getbysignalidofdayrangeCode = "getbysignalidofdayrange"; + //private string startCode = "[&start&]"; + //private string endCode = "[&end&]"; + //private string paramCode = "[¶m&]"; + //private string getbaseCode = "getbase"; + //private string getrealrecordCode = "getrealrecord"; + //private string gethistoryrecordCode = "gethistoryrecord"; + //private string getalarmbydayCode = "getalarmbyday"; + //private string getbysignalidofdayrangeCode = "getbysignalidofdayrange"; //Stopwatch sw = new Stopwatch(); //string swstr=string.Empty; @@ -31,11 +29,11 @@ } - + private void EboxForm_Load(object sender, EventArgs e) { Thread.Sleep(500); - SendText(startCode + getbaseCode + paramCode + endCode); + SendText(IBoxHelper.startCode + IBoxHelper.getbaseCode + IBoxHelper.paramCode + IBoxHelper.endCode); } @@ -84,7 +82,7 @@ return 0; } - + private void gridView3_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e) { -- Gitblit v1.9.3