Пример #1
0
        public PatientAppointmentsTabbedPage(int userId)
        {
            var appointmentServices  = new AppointmentService();
            var canceledAppointments = appointmentServices.GetAllAppointmentsByPatientId(1, "Cancelada");
            var attendedAppointments = appointmentServices.GetAllAppointmentsByPatientId(1, "Atendida");
            var upcomingAppointments = appointmentServices.GetAllAppointmentsByPatientId(1, "Pendiente");

            Page canceledAppointmentsPage = new PatientAppointmentListView(canceledAppointments)
            {
                Title = "Canceladas",
                Icon  = "logo.png"
            };
            Page attendedAppointmentsPage = new PatientAppointmentListView(attendedAppointments)
            {
                Title = "Atendidas",
                Icon  = "logo.png"
            };
            Page upcomingAppointmentsPage = new PatientAppointmentListView(upcomingAppointments)
            {
                Title = "Pendientes",
                Icon  = "logo.png"
            };

            Children.Add(attendedAppointmentsPage);
            Children.Add(canceledAppointmentsPage);
            Children.Add(upcomingAppointmentsPage);
        }
Пример #2
0
        public async void AppointmentsClicked(object sender, EventArgs e)
        {
            var appointments         = new AppointmentService().GetAllAppointmentsByPatientId(patientLoggedIn.Id, "Pendiente");
            var appointmentsListView = new PatientAppointmentListView(appointments);

            appointmentsListView.Title = "Citas";
            await Navigation.PushAsync(appointmentsListView);
        }