private void CmdActDat_Click(object sender, EventArgs e) { if (FgDatos.Rows.Count == 3) { MessageBox.Show("¡ No hay datos para vizualizar !", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); return; } Sz1.Enabled = false; ToolHerramientas.Enabled = false; LblIdEmple.Text = funFunciones.NulosC(FgDatos.GetData(FgDatos.Row, 2)); LblApeNom.Text = funFunciones.NulosC(FgDatos.GetData(FgDatos.Row, 3)); TxtFchIni2.Value = Convert.ToDateTime(TxtFchIni.Text); TxtFchFin2.Value = Convert.ToDateTime(TxtFchFin.Text); Panel2.Left = ((this.Width - Panel2.Width) / 2); Panel2.Top = ((this.Height - Panel2.Height) / 2); Panel2.Refresh(); CargarMarcacion(); Panel2.Visible = true; }