public void Dispose() { this.statusEntry = null; userInfo = null; masterLayout = null; galleryInputStackTapRecognizer = null; galleryInputStack = null; galleryInput = null; profilePic = null; progressBar = null; userProfile = null; mainTitleBar = null; subTitleBar = null; CommunitySharingLabel= null; communityShareIcon = null; communityStatusBtn = null; User currentUser = null; GC.Collect(); }
async System.Threading.Tasks.Task<bool> GetProfileInfo() { try { userProfile = await ServiceHelper.GetProfileInfoByUserId (userIdForProfileInfo); if (userProfile != null) { userInfo = new User (); userInfo.UserName = userProfile.firstname; userInfo.StatusNote = userProfile.note; userInfo.VerifiedStatus = userProfile.verified_status; userInfo.Email = userProfile.email; userInfo.ProfileImageUrl = userProfile.profileurl; } return true; } catch (Exception ex) { } return false; }