| | |
| | | LoadEvent_SkinBindFloor(); |
| | | LoadEvent_SkipEditFunctionList(); |
| | | LoadEvent_Option(); |
| | | LoadEvent_SkipSharedRoomFunctionPage(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | functionManagemantView.MouseUpEventHandler = eventHandler; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 跳转到功能分享界面 |
| | | /// </summary> |
| | | void LoadEvent_SkipSharedRoomFunctionPage() |
| | | { |
| | | EventHandler<MouseEventArgs> eHandler = (sender, e) => |
| | | { |
| | | List<ShareData> sds = new List<ShareData>(); |
| | | foreach (var f in room.functions) |
| | | { |
| | | var sd = new ShareData(); |
| | | sd.ShareName = f.sid; |
| | | sd.HouseDistributedMark = DB_ResidenceData.residenceData.residecenInfo.RegionID; |
| | | sd.ShareDataBytes = DAL.CommonPage.MyEncodingUTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(f)); |
| | | //ssdd.SubAccountDistributedMark = memberInfo.SubAccountDistributedMark; |
| | | sds.Add(sd); |
| | | } |
| | | var mmp = new MemberFunctionPermissionPage(room, sds); |
| | | MainPage.BasePageView.AddChidren(mmp); |
| | | mmp.LoadPage(StringId.ChooseSharedFunction); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnSharedRight.MouseUpEventHandler = eHandler; |
| | | sharedView.MouseUpEventHandler = eHandler; |
| | | btnSharedTitle.MouseUpEventHandler = eHandler; |
| | | } |
| | | /// <summary> |
| | | /// 加载背景图选择区域事件列表 |
| | | /// </summary> |
| | |
| | | { |
| | | if (imagePath != null) |
| | | { |
| | | btnRoomBg.UnSelectedImagePath = imagePath.ToString(); |
| | | room.backgroundImage = btnRoomBg.UnSelectedImagePath; |
| | | btnRoomBg.ImagePath = imagePath.ToString(); |
| | | room.backgroundImage = btnRoomBg.ImagePath; |
| | | MainPage.Log("SelectPicture 裁剪图片返回路径: " + imagePath); |
| | | } |
| | | }, pid.ToString(), 16, 9); |
| | |
| | | { |
| | | if (imagePath != null) |
| | | { |
| | | btnRoomBg.UnSelectedImagePath = imagePath.ToString(); |
| | | room.backgroundImage = btnRoomBg.UnSelectedImagePath; |
| | | btnRoomBg.ImagePath = imagePath.ToString(); |
| | | room.backgroundImage = btnRoomBg.ImagePath; |
| | | MainPage.Log("SelectPicture 裁剪图片返回路径: " + imagePath); |
| | | #if DEBUG |
| | | new Tip() { CloseTime = 5, Text = imagePath }.Show(MainPage.BasePageView); |