From 3e8ab638052329c43b399213ceca04df2b27685b Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 14 八月 2023 17:38:52 +0800 Subject: [PATCH] 2023-08-14 17:38:47 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs index d6ffea3..0376e08 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs @@ -58,6 +58,7 @@ Padding = new Padding(4, 4, 4, 4), Radius = (uint)Application.GetRealHeight(4), Tag = filters, + Name = i.ToString(), }; //閲嶆柊璁$畻缁勪欢瀹藉害 @@ -73,6 +74,11 @@ this.AddChidren(btnSpacing); button.MouseDownEventHandler += (sen, e) => { + if (btnSelected.Name == button.Name) + { + //鐐瑰嚮鍚屼竴涓粍浠舵棤鏁� + return; + } btnSelected.IsSelected = false; button.IsSelected = true; btnSelected = button; @@ -80,7 +86,9 @@ { return; } - SelectTypeEvent?.Invoke((Filters)button.Tag); + var filters = (Filters)button.Tag; + + SelectTypeEvent?.Invoke(filters); }; if (defaultIndex != -1 && defaultIndex == i) -- Gitblit v1.8.0