tzy
2021-05-14 0fa1534827bd21d763216550d11006fc1441c6cb
HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -192,12 +192,12 @@
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.SubheadingFontSize,
                Text = string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName
                Text = UserInfo.Current.userName// string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName
            };
            personalInfoView.AddChidren(btnUserName);
            if (!string.IsNullOrEmpty( UserInfo.Current.userName))
            if (!string.IsNullOrEmpty( UserInfo.Current.userName) && UserInfo.Current.userName == UserInfo.Current.AccountString)
            {
                btnUserName.Text =  UserInfo.Current.userName; ;
                btnUserName.Text = Language.StringByID(StringId.UsersWhoNameIsEmpty);
            }
            btnEmail = new Button()
            {
@@ -337,6 +337,18 @@
                        == false ? StringId.Administrators : StringId.Member
            };
            userTypeView.AddChidren(btnUserTypeName);
            btnUserTypeName.MouseUpEventHandler += (sender, e) =>
            {
                var form = new DoorLockListPage();
                var listDevice = new System.Collections.Generic.List<Function>();
                listDevice.Add(new Function { name = "测试设备1", sid = "1111", spk = "door.sone" });
                listDevice.Add(new Function { name = "测试设备2", sid = "2222", spk = "door.sone" });
                listDevice.Add(new Function { name = "测试设备3", sid = "3333", spk = "door.sone" });
                listDevice.Add(new Function { name = "测试设备4", sid = "4444", spk = "door.sone" });
                listDevice.Add(new Function { name = "测试设备5", sid = "5555", spk = "door.sone" });
                listDevice.Add(new Function { name = "测试设备6", sid = "6666", spk = "door.sone" });
                form.AddForm(listDevice);
            };
            #endregion
            #region 住宅管理