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;
        }
示例#3
0
        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;
        }
示例#4
0
        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;
        }
示例#5
0
        public void RefreshList()
        {
            hospitals = HospitalManager.GetHospitals();

            // create our adapter
            hospitalList = new HospitalListAdapter(this, hospitals);

            //Hook up our adapter to our ListView
            lstHospitals.Adapter = hospitalList;
        }
示例#6
0
        public void RefreshList()
        {
            hospitals = HospitalManager.GetHospitals();

            // create our adapter
            hospitalList = new HospitalListAdapter(this, hospitals);

            //Hook up our adapter to our ListView
            lstHospitals.Adapter = hospitalList;
        }
示例#7
0
        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;
        }