public void RefreshAvailableHospList() { availableHospitals = HospitalManager.GetAvailableHospitals(weekNum, (DayOfWeek)dayOfWeek); // create our adapter availableHospList = new HospitalListAdapter(this, availableHospitals); //Hook up our adapter to our ListView lstAvailableHosp.Adapter = availableHospList; }
public void RefreshChoosenHospList() { choosenHospitals = HospitalManager.GetChoosenHospitals(weekNum, (DayOfWeek)dayOfWeek); // create our adapter choosenHospList = new HospitalListAdapter(this, choosenHospitals); //Hook up our adapter to our ListView lstChoosenHosp.Adapter = choosenHospList; }
public void RefreshList() { hospitals = HospitalManager.GetHospitals(); // create our adapter hospitalList = new HospitalListAdapter(this, hospitals); //Hook up our adapter to our ListView lstHospitals.Adapter = hospitalList; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_view_hospital); operations = new DataOperations(); btnBack = FindViewById <Button>(Resource.Id.btnBack); listView = FindViewById <ListView>(Resource.Id.listHospital); btnBack.Click += BtnBack_Click;; adapter = new HospitalListAdapter(this, operations.GetHospitals()); listView.Adapter = adapter; }