From a879e5dac4fc7cee747e25a63002c40462cdaef7 Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期四, 26 五月 2022 11:39:43 +0800
Subject: [PATCH] 兼容全视通可视对讲

---
 HDL_ON/UI/UI0-Public/TopViewDiv.cs |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
index 34c732e..c85c12c 100644
--- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs
+++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -250,6 +250,35 @@
         }
 
         /// <summary>
+        /// 鎴块棿鏍囬鍖哄煙
+        /// </summary>
+        /// <param name="room"></param>
+        /// <param name="skipAction"></param>
+        /// <param name="text"></param>
+        public void LoadTopView_SettingText(Action skipAction,string text)
+        {
+            LoadTopView();
+            
+            var btnSetting = new Button()
+            {
+                X = Application.GetRealWidth(337-100),
+                Y = Application.GetRealHeight(29),
+                Width = Application.GetMinRealAverage(100),
+                Height = Application.GetMinRealAverage(28),
+                TextColor = CSS_Color.MainColor,
+                TextSize = CSS_FontSize.TextFontSize,
+                TextAlignment = TextAlignment.CenterRight,
+                Text = text,
+            };
+            contentView.AddChidren(btnSetting);
+            btnSetting.MouseUpEventHandler += (sender, e) =>
+            {
+                skipAction();
+            };
+        }
+
+
+        /// <summary>
         /// 鍚慺ramelayout娣诲姞椤堕儴鍖哄煙,鎷ユ湁娣诲姞鍥炬爣鐨勬寜閽�
         /// </summary>
         /// <param name="frame"></param>

--
Gitblit v1.8.0