From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码
---
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
index 8ecfd72..6834f12 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
@@ -100,7 +100,7 @@
Gravity = Gravity.CenterHorizontal,
TextColor = ZigbeeColor.Current.XMBlack,
TextSize = 15,
- Text = HdlDeviceCommonLogic.Current.GetDeviceMacName(doorLock),
+ Text = Common.LocalDevice.Current.GetDeviceMacName(doorLock),
};
this.midFrameLayout.AddChidren(btnDeviceText);
@@ -151,7 +151,7 @@
listview.RemoveAll();
//璁惧澶囨敞
string caption = Language.StringByID(R.MyInternationalizationString.DeviceRemarkXm);
- string deviceName = HdlDeviceCommonLogic.Current.GetDeviceMacName(doorLock);
+ string deviceName = Common.LocalDevice.Current.GetDeviceMacName(doorLock);
var btnNote = new FrameCaptionInputControl(caption, deviceName, listview.rowSpace / 2);
btnNote.txtInput.MaxByte = 48;//闄愬埗鍙兘杈撳叆48涓瓧鑺�
listview.AddChidren(btnNote);
@@ -160,7 +160,7 @@
btnNote.AddBottomLine();
btnNote.txtInput.FinishInputEvent += () =>
{
- string oldName = HdlDeviceCommonLogic.Current.GetDeviceMacName(doorLock);
+ string oldName = Common.LocalDevice.Current.GetDeviceMacName(doorLock);
if (btnNote.Text == string.Empty)
{
btnNote.Text = oldName;
@@ -193,7 +193,7 @@
continue;
}
var room = HdlRoomLogic.Current.GetRoomByDevice(device);
- string mainKeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(device);
+ string mainKeys = LocalDevice.Current.GetDeviceMainKeys(device);
if (room == null)
{
//杩欓噷鏈夌偣鐗规畩,濡傛灉鍥炶矾娌℃湁璁剧疆鏈夊尯鍩熺殑鏃跺��,鎵嶈缃�
@@ -212,7 +212,7 @@
//璁惧妯″潡
caption = Language.StringByID(R.MyInternationalizationString.BelongDevice);
- deviceName = HdlDeviceCommonLogic.Current.GetDeviceObjectText(listNewDevice);
+ deviceName = Common.LocalDevice.Current.GetDeviceObjectText(listNewDevice);
var btnType = new FrameCaptionViewControl(caption, deviceName, listview.rowSpace / 2);
btnType.UseClickStatu = false;
listview.AddChidren(btnType);
@@ -230,7 +230,7 @@
bottomFrameLayout.AddChidren(btnFinish);
btnFinish.ButtonClickEvent += (sender, e) =>
{
- string oldName = HdlDeviceCommonLogic.Current.GetDeviceMacName(listNewDevice[0]);
+ string oldName = Common.LocalDevice.Current.GetDeviceMacName(listNewDevice[0]);
if (btnNote.Text.Trim() == string.Empty)
{
btnNote.Text = oldName;
@@ -255,7 +255,7 @@
/// </summary>
private void AddAllMenuRow()
{
- if (HdlUserCenterResourse.ResidenceOption.AuthorityNo == 1)
+ if (UserCenterResourse.UserInfo.AuthorityNo == 1)
{
//娣诲姞銆愪复鏃跺瘑鐮併�戣
this.AddTempPasswordRow();
@@ -331,7 +331,7 @@
btnswitch.ButtonClickEvent += async (sender, e) =>
{
- if (HdlUserCenterResourse.ResidenceOption.AuthorityNo == 1)
+ if (UserCenterResourse.UserInfo.AuthorityNo == 1)
{
if (btnswitch.IsSelected == true)
{
@@ -395,7 +395,7 @@
var doorLock = this.listNewDevice[0] as ZigBee.Device.DoorLock;
btnRow.ButtonClickEvent += async (sender, e) =>
{
- if (HdlUserCenterResourse.ResidenceOption.AuthorityNo == 1)
+ if (UserCenterResourse.UserInfo.AuthorityNo == 1)
{
var tempPage = new Shared.Phone.UserCenter.DoorLock.TimeSettignPage(doorLock, "DoorLockTime");
Shared.Phone.UserView.HomePage.Instance.AddChidren(tempPage);
@@ -434,7 +434,7 @@
//淇敼MAC鍚�
string deviceName = i_deviceName.Trim();
- var result = HdlDeviceCommonLogic.Current.ReMacName(listNewDevice, deviceName);
+ var result = Common.LocalDevice.Current.ReMacName(listNewDevice, deviceName);
//鍏抽棴杩涘害鏉�
this.CloseProgressBar();
--
Gitblit v1.8.0