private void GroupsAdapterOnItemClick(object sender, UserGroupsAdapterClickEventArgs e) { try { var position = e.Position; switch (position) { case < 0: return; } var item = GroupsAdapter.GetItem(position); switch (item) { case null: return; } if (UserDetails.UserId == item.UserId) { item.IsOwner = true; } //if (!string.IsNullOrEmpty(item.GroupsModel.UserProfileId) && UserDetails.UserId == item.GroupsModel.UserProfileId) // group.IsJoined = "true"; MainApplication.GetInstance()?.NavigateTo(ActivityContext, typeof(GroupProfileActivity), item); } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }
//Event Joined Groups => Using Get_Community_Object.Group => Open Group_ProfileActivity private void GroupsAdapter_OnItemClick(object sender, GroupsAdapteClickEventArgs adapterClickEvents) { try { var position = adapterClickEvents.Position; if (position >= 0) { var item = GroupsAdapter.GetItem(position); if (item != null) { var Int = new Intent(this, typeof(Group_Profile_Activity)); Int.PutExtra("MyGroups", JsonConvert.SerializeObject(item)); Int.PutExtra("GroupsType", "Joined_MyGroups"); StartActivity(Int); } } } catch (Exception e) { Crashes.TrackError(e); } }