From a72a2fafc5cd95d9fae4957d855929fabf594415 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 19 九月 2024 22:56:57 +0800 Subject: [PATCH] 自动匹配修改 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/05-function/XhsProjectSimulationFunctionMgrCtrl.cs | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 53 insertions(+), 2 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/05-function/XhsProjectSimulationFunctionMgrCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/05-function/XhsProjectSimulationFunctionMgrCtrl.cs index 25782ba..0e0e5ff 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/05-function/XhsProjectSimulationFunctionMgrCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/05-function/XhsProjectSimulationFunctionMgrCtrl.cs @@ -1,4 +1,6 @@ -锘縩amespace HStation.WinFrmUI +锘縰sing DevExpress.Utils.Svg; + +namespace HStation.WinFrmUI { public partial class XhsProjectSimulationFunctionMgrCtrl : DevExpress.XtraEditors.XtraUserControl { @@ -7,9 +9,58 @@ InitializeComponent(); } + /// <summary> + /// 鏄剧ず寰幆姘撮」鐩俊鎭簨浠� + /// </summary> + public event Action<SvgImage> ShowXhsProjectInfoEvent; + + /// <summary> + /// 鏄剧ず寰幆姘撮」鐩按鍔涙ā鎷熶簨浠� + /// </summary> + public event Action<SvgImage> ShowXhsProjectSimulationEvent; + + /// <summary> + /// 鍒涘缓寰幆姘撮」鐩柟妗堜簨浠� + /// </summary> + public event Action<SvgImage> CreateXhsProjectSchemeEvent; + + /// <summary> + /// 姣旇緝寰幆姘撮」鐩柟妗堜簨浠� + /// </summary> + public event Action<SvgImage> CompareXhsProjectSchemeEvent; + + //鍏冪礌鐐瑰嚮浜嬩欢 private void accordionControl1_ElementClick(object sender, DevExpress.XtraBars.Navigation.ElementClickEventArgs e) { - + var tag = e.Element.Tag?.ToString(); + switch (tag) + { + case "info": + { + this.ShowXhsProjectInfoEvent?.Invoke(this.svgImg32[0]); + } + break; + case "simulation": + { + this.ShowXhsProjectSimulationEvent?.Invoke(this.svgImg32[1]); + } + break; + case "scheme-create": + { + this.CreateXhsProjectSchemeEvent?.Invoke(this.svgImg32[3]); + } + break; + case "scheme-compare": + { + this.CompareXhsProjectSchemeEvent?.Invoke(this.svgImg32[4]); + } + break; + default: break; + } } + + + + } } -- Gitblit v1.9.3