private async Task <List <SessionBooking> > searchByCampus(Campus campus) { LoadingOverlay.Instance.showLoading(this); SessionBookingList ssList = new SessionBookingList(); return(await ssList.searchByLocation(campus)); }
private async Task <List <SessionBooking> > searchByLecturer(Lecturer lecturer) { LoadingOverlay.Instance.showLoading(this); SessionBookingList ssList = new SessionBookingList(); return(await ssList.searchByLecturer(lecturer)); }
private async void showPastBookingList() { LoadingOverlay.Instance.showLoading(this); WorkshopBookingList workshopBookingList = new WorkshopBookingList(); SessionBookingList sessionBookingList = new SessionBookingList(); Student student = AppParam.Instance.student; List <WorkshopBooking> wkBookingList = await workshopBookingList.getPastByStudent(student); List <SessionBooking> ssBookingList = await sessionBookingList.getPastByStudent(student); historyBookingTable.Source = new HistoryTableSource(this, wkBookingList, ssBookingList); historyBookingTable.ReloadData(); }
private async void showUpcomingBookingList() { LoadingOverlay.Instance.showLoading(this); WorkshopBookingList workshopBookingList = new WorkshopBookingList(); SessionBookingList sessionBookingList = new SessionBookingList(); Student student = AppParam.Instance.student; List <WorkshopBooking> wkBookingList = await workshopBookingList.getUpcomingByStudent(student); List <SessionBooking> ssBookingList = await sessionBookingList.getUpcomingByStudent(student); myBookingTableView.Source = new MyBookingTableSource(this, wkBookingList, ssBookingList); myBookingTableView.ReloadData(); }