| | |
| | | { |
| | | if (titleId == StringId.PermissionToUse)//从个人中心进入单独分享 |
| | | { |
| | | new System.Threading.Thread(() => |
| | | new Thread(() => |
| | | { |
| | | bool result = false; |
| | | Action act = () => { }; |
| | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | new PublicAssmebly().TipMsgAutoClose(Language.StringByID(StringId.FunctionSharingSucceeded), true); |
| | | memberInfo.CurResidenceShareDate = funs_New; |
| | | }); |
| | | Thread.Sleep(1600); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | MainPage.BasePageView.RemoveAt(MainPage.BasePageView.ChildrenCount - 1); |
| | | //MainPage.BasePageView.RemoveAt(MainPage.BasePageView.ChildrenCount - 1); |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | refreshFunctionCount?.Invoke(funs_New.Count.ToString()); |
| | | }); |
| | | } |
| | |
| | | if (responePack.StateCode.ToUpper() != "SUCCESS") |
| | | { |
| | | return false; |
| | | }else |
| | | } |
| | | else |
| | | { |
| | | return true; |
| | | } |
| | |
| | | funs_New.Add(newSd); |
| | | } |
| | | btnChooseAll.IsSelected = true; |
| | | foreach (var f in room.functions) |
| | | foreach (var f in room.GetRoomFunctions(false)) |
| | | { |
| | | if (funs_New.Find((obj) => obj.ShareName == f.sid) == null) |
| | | { |
| | |
| | | funs_New = new List<ShareData>(); |
| | | if (btnChooseAll.IsSelected) |
| | | { |
| | | foreach(var f in room.functions) |
| | | foreach(var f in room.GetRoomFunctions(false)) |
| | | { |
| | | var ssdd = new ShareData(); |
| | | ssdd.ShareName = f.sid; |
| | |
| | | } |
| | | else |
| | | { |
| | | foreach(var f in room.functions) |
| | | foreach(var f in room.GetRoomFunctions(false)) |
| | | { |
| | | var sd = funs.Find((obj) => obj.ShareName == f.sid); |
| | | if (sd != null) |