void CurrentListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { Bundle args = new Bundle(); args.PutString("studentId", studentId); args.PutInt("workshopId", currentBooking[e.Position].workshopId); bookedFragment = new BookedWorkshopFragment(); bookedFragment.Arguments = args; var trans = FragmentManager.BeginTransaction(); trans.Replace(Resource.Id.mainFragmentContainer, bookedFragment, "BookedFragment"); trans.AddToBackStack(null); trans.Commit(); }
void GoToWorkshopBooked() { Bundle bundle = new Bundle(); bundle.PutInt("workshopId", workshopId); bundle.PutString("studentId", studentId); BookedWorkshopFragment bookedWorkshop = new BookedWorkshopFragment(); bookedWorkshop.Arguments = bundle; var trans = FragmentManager.BeginTransaction(); trans.Replace(Resource.Id.mainFragmentContainer, bookedWorkshop, "BookedFragment"); trans.Commit(); }