| | |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | | /// <summary> |
| | | /// 成员管理 成员列表页面 |
| | | /// </summary> |
| | | public partial class MemberManagementPage : FrameLayout |
| | | { |
| | | MemberManagementPage bodyView; |
| | |
| | | Action backAction = () => |
| | | { |
| | | }; |
| | | Action<string, string> refreshAction = (s1, s2) => |
| | | |
| | | Action backAction_AddMember = () => |
| | | { |
| | | var mmp = new AddMemberScanPage(); |
| | | LoadThread_GetResidenceMemberAccount().Start(); |
| | | }; |
| | | Action refreshAction = () => |
| | | { |
| | | var mmp = new AddMemberScanPage(backAction_AddMember); |
| | | MainPage.BasePageView.AddChidren(mmp); |
| | | mmp.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | Console.WriteLine(s1); |
| | | Console.WriteLine(s2); |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.MemberManagement)).LoadTopView("Member", refreshAction, backAction); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.MemberManagement)).LoadTopView_MemberTopView(refreshAction, backAction); |
| | | |
| | | contentView = new VerticalScrolViewLayout() |
| | | { |
| | |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealWidth(230), |
| | | //Height = Application.GetRealWidth(230), |
| | | Height = Application.GetRealWidth(180), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | ScrollEnabled = false, |
| | | VerticalScrollBarEnabled = false,//隐藏滚动条 |
| | | }; |
| | | contentView.AddChidren(sView); |
| | | #region 头像信息 |
| | |
| | | Height = Application.GetRealWidth(79), |
| | | }; |
| | | sView.AddChidren(view1); |
| | | |
| | | var userTypeView = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(122), |
| | | Height = Application.GetRealHeight(58), |
| | | X = Application.GetRealWidth(270), |
| | | Y = Application.GetRealHeight(16), |
| | | BackgroundImagePath = "PersonalCenter/UserTypebg.png", |
| | | }; |
| | | view1.AddChidren(userTypeView); |
| | | |
| | | var btnUserTypeName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Width = Application.GetRealWidth(80), |
| | | Height = Application.GetRealHeight(17 * 3), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = StringId.Member |
| | | }; |
| | | userTypeView.AddChidren(btnUserTypeName); |
| | | if(Language.CurrentLanguage == "English") |
| | | { |
| | | userTypeView.X = Application.GetRealWidth(260); |
| | | } |
| | | |
| | | var memberHeadImageView = new ImageView() |
| | | { |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | IsBold = true, |
| | | Text = memberInfo.UserName |
| | | //Text = memberInfo.UserName, |
| | | Text = HDLCommon.Current.GetUserName(memberInfo.memberName) |
| | | }; |
| | | view1.AddChidren(btnMemberName); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = memberInfo.Nickname |
| | | Text = memberInfo.nickName |
| | | }; |
| | | view2.AddChidren(btnNickname); |
| | | |
| | |
| | | }; |
| | | view3.AddChidren(btnPermissionRight); |
| | | |
| | | sView.AddChidren(new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Height = Application.GetRealWidth(1), |
| | | Width = Application.GetRealWidth(311), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | //sView.AddChidren(new Button() |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Height = Application.GetRealWidth(1), |
| | | // Width = Application.GetRealWidth(311), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}); |
| | | |
| | | EventHandler<MouseEventArgs> eHandler = (sender, e) => |
| | | { |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 创建场景 |
| | | var view4 = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealWidth(50), |
| | | }; |
| | | sView.AddChidren(view4); |
| | | //#region 创建场景 2020-12-23 隐藏创建场景按钮 |
| | | //var view4 = new FrameLayout() |
| | | //{ |
| | | // Height = Application.GetRealWidth(50), |
| | | //}; |
| | | //sView.AddChidren(view4); |
| | | |
| | | var btnCreateSceneTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.CreateScene, |
| | | }; |
| | | view4.AddChidren(btnCreateSceneTitle); |
| | | //var btnCreateSceneTitle = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(16), |
| | | // Width = Application.GetRealWidth(200), |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // TextID = StringId.CreateScene, |
| | | //}; |
| | | //view4.AddChidren(btnCreateSceneTitle); |
| | | |
| | | var btnCreateSceneRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(287), |
| | | Y = Application.GetRealHeight(4), |
| | | Width = Application.GetMinRealAverage(38), |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = memberInfo.IsAllowCreateScene |
| | | }; |
| | | view4.AddChidren(btnCreateSceneRight); |
| | | //var btnCreateSceneRight = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(287), |
| | | // Y = Application.GetRealHeight(4), |
| | | // Width = Application.GetMinRealAverage(38), |
| | | // Height = Application.GetMinRealAverage(38), |
| | | // UnSelectedImagePath = "Public/Switch_2.png", |
| | | // SelectedImagePath = "Public/SwitchOn_2.png", |
| | | // IsSelected = memberInfo.isAllowCreateScene |
| | | //}; |
| | | //view4.AddChidren(btnCreateSceneRight); |
| | | |
| | | LoadView_ChangeCreateSceneState(btnCreateSceneRight, btnCreateSceneTitle, memberInfo); |
| | | #endregion |
| | | |
| | | //LoadView_ChangeCreateSceneState(btnCreateSceneRight, btnCreateSceneTitle, memberInfo); |
| | | //#endregion |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |