| | |
| | | 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() |
| | | { |
| | |
| | | == false ? StringId.Administrators : StringId.Member |
| | | }; |
| | | userTypeView.AddChidren(btnUserTypeName); |
| | | btnUserTypeIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var form = new AddThirdPartyDeviceMenuListPage(); |
| | | form.AddForm("Evoyo"); |
| | | }; |
| | | #endregion |
| | | #region 住宅管理 |
| | | |
| | |
| | | Width = Application.GetRealWidth(64 + 48), |
| | | Height = Application.GetRealWidth(64), |
| | | }; |
| | | //residenceInfoView.AddChidren(residenceAddFunctionView); |
| | | residenceInfoView.AddChidren(residenceAddFunctionView); |
| | | btnResidenceAddFunctionIcon = new Button |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |