From a5b3c4bae726ef6770d4bfcbf2f4b50a37ed4a15 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 06 三月 2020 15:31:36 +0800
Subject: [PATCH] 删除了郭雪城的 DeviceUi 这个类
---
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs | 62 ++++++++++++++++++++----------
1 files changed, 41 insertions(+), 21 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
index 28e15de..3947cb4 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
@@ -18,12 +18,24 @@
BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor;
}
- #region 鈼� 鍙橀噺鐢虫槑__________________________
+ #region 鍙橀噺鐢虫槑
+ /// <summary>
+ /// 褰撳墠闂ㄩ攣
+ /// </summary>
ZigBee.Device.DoorLock doorLock;
+ /// <summary>
+ /// 褰撳墠鎴愬憳瀵硅薄v
+ /// </summary>
Shared.Phone.UserCenter.MemberInfoRes curAccountObj;
+ /// <summary>
+ /// 鍒锋柊View
+ /// </summary>
VerticalRefreshLayout bodyView;
#endregion
+ /// <summary>
+ /// 鍒濆鍖栨暟鎹俊鎭�
+ /// </summary>
void ReadDoorLockUserInfo()
{
System.Threading.Tasks.Task.Run(async () =>
@@ -100,7 +112,9 @@
ReadDoorLockUserInfo();
};
}
-
+ /// <summary>
+ /// 涓儴甯冨眬
+ /// </summary>
public async void MidRefresh()
{
bodyView.RemoveAll();
@@ -219,25 +233,25 @@
unLockMethod.Show();
}
else if (currentIndex == 1)
- {
+ {
if (!btnRight.IsSelected)
{
- FreezeUser(true);
+ FreezeUser(true);
}
else
{
- FreezeUser(false);
+ FreezeUser(false);
}
}
else if (currentIndex == 2)
- {
+ {
if (!btnRight.IsSelected)
{
- HasRemoteUnlockAccessMethod(true);
+ HasRemoteUnlockAccessMethod(true);
}
else
{
- HasRemoteUnlockAccessMethod(false);
+ HasRemoteUnlockAccessMethod(false);
}
}
};
@@ -261,7 +275,10 @@
}
}
- //鍐荤粨璐︽埛
+ /// <summary>
+ /// 鍐荤粨璐︽埛
+ /// </summary>
+ /// <param name="isFreeze"></param>
void FreezeUser(bool isFreeze)
{
var dialog = new Dialog { };
@@ -299,8 +316,8 @@
foreach (var curDoorLockUser in curAccountDoorLockUserList)
{
// 璐︽埛涓病鏈夐棬閿佺敤鎴�
- if (curDoorLockUser.DoorLockLocalUserId == null || curDoorLockUser.DoorLockLocalUserId == "")
- {
+ if (string.IsNullOrEmpty(curDoorLockUser.DoorLockLocalUserId))
+ {
}
else
{
@@ -325,16 +342,16 @@
}
//鍐荤粨/瑙e喕鐢ㄦ埛
int count1 = tempGroupId.Count;
- if (tempGroupId.Count==1)
+ if (tempGroupId.Count == 1)
{
foreach (var a in tempGroupId)
{
- if(a.Count ==0)
+ if (a.Count == 0)
{
count1 = 0;
break;
}
- }
+ }
}
int count2 = 0;
@@ -357,8 +374,8 @@
else if (resultData.defaultControlResponseData.status == 33)
{
count2++;
- }
- System.Threading.Thread.Sleep(1000);
+ }
+ System.Threading.Thread.Sleep(1000);
}
else
{
@@ -370,7 +387,7 @@
}
tempCount++;
}
-
+
// 鎵归噺鍐荤粨闂ㄩ攣涓殑璐︽埛鍚庯紝鍑嗗鍐荤粨浜戠璐︽埛
if (count2 == count1)
{
@@ -565,10 +582,13 @@
});
}
});
- };
+ };
}
- //鏄惁缁欏瓙璐︽埛鎷ユ湁杩滅▼寮�閿佺殑鏉′欢
+ /// <summary>
+ /// 鏄惁缁欏瓙璐︽埛鎷ユ湁杩滅▼寮�閿佺殑鏉′欢
+ /// </summary>
+ /// <param name="hasAccess"></param>
void HasRemoteUnlockAccessMethod(bool hasAccess)
{
string msg = Language.StringByID(R.MyInternationalizationString.SureGiveAccessToSubaccount);
@@ -761,10 +781,10 @@
});
}
});
- };
+ };
}
- #region 鈼� 鎺ュ彛瀹炵幇__________________________
+ #region 鎺ュ彛瀹炵幇
/// <summary>
/// 澶勭悊鍙樺寲浜嬩欢 --灏嗗純鐢� 鏀圭敤DeviceInfoChange()
/// </summary>
--
Gitblit v1.8.0