From 357693611c60d93fb17189273d4c91dab364f0d4 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期五, 20 十二月 2024 10:09:11 +0800 Subject: [PATCH] 压缩机整改 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/00-core/LayViewEx.cs | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/00-core/LayViewEx.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/00-core/LayViewEx.cs index 71bed38..6f8e96d 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/00-core/LayViewEx.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/00-core/LayViewEx.cs @@ -15,7 +15,7 @@ layoutView1.Appearance.FieldEditingValue.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; layoutView1.Appearance.FieldValue.Options.UseTextOptions = true; layoutView1.Appearance.FieldValue.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - + layoutView1.OptionsBehavior.ScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto; layoutView1.OptionsCustomization.AllowFilter = false; layoutView1.OptionsCustomization.AllowSort = false; @@ -31,6 +31,18 @@ layoutView1.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiColumn; layoutView1.OptionsView.ContentAlignment = ContentAlignment.MiddleCenter; layoutView1.OptionsView.AllowHotTrackFields = false; + + + } + + public static void SetFindPanel(this LayoutView layoutView1) + { + layoutView1.ShowFindPanel(); + layoutView1.OptionsFind.ShowCloseButton = false; + layoutView1.OptionsFind.ShowFindButton = false; + layoutView1.OptionsFind.FindNullPrompt = "鎼滅储"; + + } } -- Gitblit v1.9.3