From 351bdda734832d821a9764b0cde8be5d83c4ec50 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 01 十二月 2022 09:56:25 +0800
Subject: [PATCH] 2022年12月01日09:56:23
---
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs
index b07d110..083fb29 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs
@@ -130,8 +130,7 @@
btnBeloneArea.AddBottomLine();
//mini缃戝叧鏈変釜鍔熻兘璁剧疆
- var linuxImageType = this.zbGateway.LinuxImageType;
- if (linuxImageType == 11)
+ if (HdlGatewayLogic.Current.IsMiniGateway(this.zbGateway) == true)
{
var listDevice = Common.LocalDevice.Current.GetDeviceByGatewayID(this.zbGateway.GwId);
CommonDevice miniDevice = null;
@@ -314,7 +313,7 @@
&& Common.Config.Instance.Home.IsShowTemplate == false
&& Common.Config.Instance.Home.IsVirtually == false)
{
- //menuCount++;
+ menuCount++;
}
var frame = new TopRightMenuControl(menuCount, 1);
//瀹氫綅
@@ -370,14 +369,16 @@
});
});
}
- //if (canAddReplaceMenu == true)
- //{
- // //鏇挎崲
- // MenuName = Language.StringByID(R.MyInternationalizationString.uReplace);
- // frame.AddRowMenu(MenuName, null, "Item/ReplaceIconSelected.png", () =>
- // {
- // });
- //}
+ if (canAddReplaceMenu == true)
+ {
+ //鏇挎崲
+ MenuName = Language.StringByID(R.MyInternationalizationString.uReplace);
+ frame.AddRowMenu(MenuName, null, "Item/ReplaceIconSelected.png", () =>
+ {
+ var form = new GatewayReplaceForm();
+ form.AddForm(this.zbGateway);
+ });
+ }
}
#endregion
--
Gitblit v1.8.0