private void mcCalRegistro_DateChanged(object sender, DateRangeEventArgs e)
        {
            List <string>      available = lstHorarios;
            List <Appointment> aux       = new List <Appointment>();

            aux = Appointment_Ctrl.ExistentHours(DateTime.Today.Date.ToString("yyyy-MM-dd"), doctors[cmbDoct.SelectedIndex].id);
        }
예제 #2
0
        public PpalMedicos(User usr)
        {
            //Patient pt = new Patient();
            InitializeComponent();
            //private Patient actualP{get;set;}

            try
            {
                //Usuario que inició sesión
                activeUser    = new User();
                actualPatient = new Patient();
                activeUser    = usr;
                //Citas del médico con sesión activa
                appointments = new List <Appointment>();
                appointments = Appointment_Ctrl.GetPacientsAppointments(DateTime.Today.Date.ToString("yyyy-MM-dd"), activeUser.id.ToString());
                foreach (var item in appointments)
                {
                    lstPacientes.Items.Add(item.patient_name);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            //
            //btnAnalyze.Visible = false;
        }