private void timerValidarFecha_Tick(object sender, EventArgs e) { try { string strMsj = ""; List <tb_Empresa_Info> lstInfoEmp = new List <tb_Empresa_Info>(); tb_Empresa_Bus busEmp = new tb_Empresa_Bus(); timerValidarFecha.Enabled = false;// apago este proceso lstInfoEmp = busEmp.ValidarFechaCertificado(); if (lstInfoEmp.Count > 0) { foreach (var item in lstInfoEmp) { if (item.DiasExpirar > 0) { strMsj = strMsj + "El Certificado de la Empresa " + item.NombreComercial + ", le faltan " + item.DiasExpirar + " dias por Expirar. \n"; } else { strMsj = strMsj + "El Certificado de la Empresa " + item.NombreComercial + ", tiene " + item.DiasExpirar + " dias Expirado. \n"; } } barMsjValidez.Caption = strMsj; } else { barMsjValidez.Caption = ""; } timerValidarFecha.Enabled = true; } catch (Exception ex) { BusLoginError.Log_Error(ex.Message, eTipoError.ERROR, this.ToString()); } }