private void MyFollowersAdapter_OnItemClick(object sender, MyFollowers_AdapterClickEventArgs adapterClickEvents) { try { var position = adapterClickEvents.Position; if (position >= 0) { var item = MyFollowersAdapter.GetItem(position); if (item != null) { Intent Int; if (item.user_id != UserDetails.User_id) { Int = new Intent(this, typeof(User_Profile_Activity)); Int.PutExtra("UserId", item.user_id); Int.PutExtra("UserType", "MyFollowers"); Int.PutExtra("UserItem", JsonConvert.SerializeObject(item)); } else { Int = new Intent(this, typeof(MyProfile_Activity)); Int.PutExtra("UserId", item.user_id); } StartActivity(Int); } } } catch (Exception exception) { Crashes.TrackError(exception); } }
//Event Refresh Data Page private void SwipeRefreshLayoutOnRefresh(object sender, EventArgs e) { try { if (Type_Contacts == "Following") { MyContactsAdapter?.Clear(); Get_MyContact(); } else { MyFollowersAdapter?.Clear(); Get_MyFollowers(); } swipeRefreshLayout.Refreshing = true; } catch (Exception exception) { Crashes.TrackError(exception); } }