Esempio n. 1
0
        private void PlanillasHorariasForm_Load(object sender, EventArgs e)
        {
            Abrir();

            try
            {
                RefrescarGeneracionPlanillas();

                dtpFecha.Value = DateTime.Today;

                List <ChoferBE> choferes = Chofer.ListarTodos().OrderBy(c => c.Nombre).ToList();
                choferes.Insert(0, new ChoferBE());
                cmbChofer.DataSource = choferes;

                List <VehiculoBE> coches = Vehiculo.ListarTodos().OrderBy(v => v.Patente).ToList();
                coches.Insert(0, new VehiculoBE());
                cmbCoche.DataSource = coches;

                List <RecorridoBE> recorridos = Recorrido.ListarTodos().OrderBy(r => r.ToString()).ToList();
                recorridos.Insert(0, new RecorridoBE());
                cmbRecorrido.DataSource = recorridos;
            }
            catch
            {
                MostrarError();
            }
        }