Beispiel #1
0
        protected override void OnResume()
        {
            base.OnResume();

            //tasks = TaskManager.GetTasks();
            appointments = AppointmentManager.GetAppointments();

            // create our adapter
            //taskList = new Adapters.TaskListAdapter(this, tasks);
            appointmentList = new Adapters.AppointmentListAdaptor(this, appointments);

            //Hook up our adapter to our ListView
            taskListView.Adapter = appointmentList;
        }
Beispiel #2
0
        /// <summary>
        /// Fills AppointmentNos into ComboBox
        /// </summary>
        private void FillAppointmentNo()
        {
            string[] AppointmentList = AppointmentManager.GetAppointments();

            cboAppointmentNo.Items.Clear();
            if (AppointmentList != null)
            {
                cboAppointmentNo.Items.Add("All");
                foreach (string str in AppointmentList)
                {
                    cboAppointmentNo.Items.Add(str);
                }
                cboAppointmentNo.Text = "All";
            }
        }
Beispiel #3
0
 // GET: Appointment
 public ActionResult Index()
 {
     return(View(_appointmentManager.GetAppointments()));
 }
Beispiel #4
0
 public async Task <ActionResult <IEnumerable <Appointment> > > GetAppointments(string patientID)
 {
     return(View("SearchResult", await manager.GetAppointments(patientID)));
 }