Exemple #1
0
        private void BtnCrear_Click(object sender, EventArgs e)
        {
            ClienteCls     cli   = (ClienteCls)comboClientes.SelectedValue;
            ProfesionalCls prof  = (ProfesionalCls)comboProfecionales.SelectedValue;
            DateTime       fecha = dateTimePicker1.Value;
            TurnoCls       turno = new TurnoCls(fecha, prof, cli);

            general.addTurno(turno);
            mostrarTurnos();
        }
 public void addTurno(TurnoCls turno)
 {
     turnos.Add(turno);
 }