Example #1
0
 private void MostrarDatos()
 {
     try
     {
         h.ObtenerDatos();
         chbLunes.Checked     = h.Lunes;
         chbMartes.Checked    = h.Martes;
         chbMiercoles.Checked = h.Miercoles;
         chbJueves.Checked    = h.Jueves;
         chbViernes.Checked   = h.Viernes;
         chbSabado.Checked    = h.Sabado;
         chbDomingo.Checked   = h.Domingo;
         dtpHoraIni.Value     = DateTime.Parse(dtpHoraIni.MinDate.ToString("yyyy-MM-dd") + " " + h.HoraInicio.ToString("HH:mm:ss"));
         dtpHoraFin.Value     = DateTime.Parse(dtpHoraFin.MinDate.ToString("yyyy-MM-dd") + " " + h.HoraFin.ToString("HH:mm:ss"));
     }
     catch (MySqlException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }