Exemplo n.º 1
0
 //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);
     }
 }
Exemplo n.º 2
0
 // Event Open IMG Using ImagePostViewer_Activity
 private void PhotosAdapterOnItemClick(object sender, GroupsAdapteClickEventArgs adapterClickEvents)
 {
     try
     {
         var position = adapterClickEvents.Position;
         if (position >= 0)
         {
             var item = photosAdapter.GetItem(position);
             if (item != null)
             {
                 var Int = new Intent(this, typeof(ImagePostViewer_Activity));
                 Int.PutExtra("Item", JsonConvert.SerializeObject(item));
                 Int.PutExtra("ImageUrl", item.postFile_full);
                 StartActivity(Int);
             }
         }
     }
     catch (Exception exception)
     {
         Crashes.TrackError(exception);
     }
 }