From 42b78147ee4d1f9a211851256b4623afe6a102cd Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 24 四月 2024 10:06:58 +0800
Subject: [PATCH] 修复组控无法保存名称的问题,

---
 HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index 8d43174..53b7536 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -361,6 +361,14 @@
             //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶
             ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg);
 
+            var roomViewbgColor = new Button()
+            {
+                Height = Application.GetRealWidth(192),
+                Radius = (uint)Application.GetRealWidth(12),
+                BackgroundColor = 0x19333333,
+            };
+            roomView.AddChidren(roomViewbgColor);
+
             var btnFloorAndRoomName = new Button()
             {
                 X = Application.GetRealWidth(16),
@@ -455,13 +463,6 @@
             //roomView.AddChidren(environmentalView);
             #endregion
 
-            var roomViewbgColor = new Button()
-            {
-                Height = Application.GetRealWidth(192),
-                Radius = (uint)Application.GetRealWidth(12),
-                BackgroundColor = 0x19333333,
-            };
-            roomView.AddChidren(roomViewbgColor);
 
             var btnAllClose = new Button()
             {
@@ -483,8 +484,7 @@
             //    BackgroundColor = CSS_Color.MainBackgroundColor,
             //};
             //roomView.AddChidren(btn);
-
-            roomViewbgColor.MouseUpEventHandler += (sender, e) =>
+            EventHandler <MouseEventArgs> roomRowClick = (sender, e) =>
             {
                 Action ReloadRoomName = () =>
                 {
@@ -509,6 +509,10 @@
                 view.LoadPage();
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
             };
+            roomViewbgColor.MouseUpEventHandler = roomRowClick;
+            btnFloorAndRoomName.MouseUpEventHandler = roomRowClick;
+
+
         }
         /// <summary>
         /// 璁拌浇灏忓浘鎴块棿row

--
Gitblit v1.8.0