private void btnBuscaHorario_Click(object sender, EventArgs e)
 {
     CargarBusqueda();
     if (LocalData.searchHorariosList != null &&
         LocalData.searchHorariosList.Count > 0)
     {
         var searchTable = LocalData.searchHorariosList.AsDataTable(); // transforma en dataTable
         var searchForm  = new Search(searchTable, "Descrip", "Key");
         searchForm.ShowDialog();
         if (searchForm.SelectedKey != null)
         {
             var curKey = Convert.ToInt32(searchForm.SelectedKey);
             var hora   = commB.FindHorarioById(curKey);
             if (hora != null)
             {
                 txtIdHorario.Text = hora.IdHorario.ToString();
                 txtHorario.Text   = hora.Descripcion;
             }
         }
     }
 }