public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.Inflate(Resource.Layout.SearchLayout, container, false); //Get student data from intent in parent activity studentData = JsonConvert.DeserializeObject<StudentData>(this.Activity.Intent.GetStringExtra("student")); // Set the "Upcoming Sessions" list view to display (upto) the four closest sessions DisplayAvailableWorkshops(view); return view; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.Inflate(Resource.Layout.BookingsLayout, container, false); //Get student data from intent in parent activity _StudentData = JsonConvert.DeserializeObject<StudentData>(this.Activity.Intent.GetStringExtra("student")); _SessionBookingData = Server.currentSessionBookingData; _WorkshopBookingData = Server.currentWorkshopBookingData; _NoDisplay = view.FindViewById<TextView>(Resource.Id.textNoBooking); _NoDisplay.Visibility = ViewStates.Gone; // Set the "Past Bookings" list view to display (upto) the four closest sessions DisplayPastBookings(view); if (_Bookings.Count < 1) _NoDisplay.Visibility = ViewStates.Visible; return view; }
private async Task FetchWorkshopBookingData() { studentData = JsonConvert.DeserializeObject<StudentData>(Intent.GetStringExtra("student")); ShowProgressDialog(progressDialog, "Fetching bookings. Please wait...", true); WorkshopController workshopController = new WorkshopController(); workshopBookingData = await workshopController.GetWorkshopBookingData(studentData.attributes.studentID); Server.currentWorkshopBookingData = workshopBookingData; if (workshopBookingData != null && workshopBookingData.attributes.Count > 0) { FetchCampusData(); FetchWorkshopSetData(); } ShowProgressDialog(progressDialog, "Fetching bookings. Please wait...", false); }
public LandingFragment(SessionBookingData sessionBookingData, WorkshopBookingData workshopBookingData, StudentData studentData) { this.sessionBookingData = sessionBookingData; this.workshopBookingData = workshopBookingData; this.studentData = studentData; }
private async Task<bool> registeredAtHELPS(string studentID) { return (studentDataAtHELPS = await new HomeController().login(studentID)) != null; }
public PastBookingsFragment(SessionBookingData sessionBookingData, WorkshopBookingData workshopBookingData, StudentData studentData) { this._SessionBookingData = sessionBookingData; this._WorkshopBookingData = workshopBookingData; this._StudentData = studentData; }