private void Modificar()
 {
     if (MessageBox.Show("¿Desea modificar el empleado?", "Confirmacion", MessageBoxButtons.YesNo,
                         MessageBoxIcon.Question) == DialogResult.Yes)
     {
         String          idEmpleado = dtgEmpleados.CurrentRow.Cells["IDEmpleado"].Value.ToString();
         EdicionEmpleado f          = new EdicionEmpleado(EdicionEmpleado.Opcion.ACTUALIZAR, idEmpleado);
         f.txbNombres.Text   = dtgEmpleados.CurrentRow.Cells["Nombres"].Value.ToString();
         f.txbApellidos.Text = dtgEmpleados.CurrentRow.Cells["Apellidos"].Value.ToString();
         f.txbCorreo.Text    = dtgEmpleados.CurrentRow.Cells["Correo"].Value.ToString();
         f.txbEstudios.Text  = dtgEmpleados.CurrentRow.Cells["EstudiosAcademicos"].Value.ToString();
         f.txbSalario.Text   = dtgEmpleados.CurrentRow.Cells["Salario"].Value.ToString().Replace(",", ".");
         f.fechaIngreso.Text = dtgEmpleados.CurrentRow.Cells["FechaIngreso"].Value.ToString();
         f.txbDireccion.Text = dtgEmpleados.CurrentRow.Cells["Direccion"].Value.ToString();
         f.txbCelular.Text   = dtgEmpleados.CurrentRow.Cells["NumeroCelular"].Value.ToString();
         f.txbCargo.Text     = dtgEmpleados.CurrentRow.Cells["Cargo"].Value.ToString();
         f.txbDUI.Text       = dtgEmpleados.CurrentRow.Cells["DUI"].Value.ToString();
         f.txbNIT.Text       = dtgEmpleados.CurrentRow.Cells["NIT"].Value.ToString();
         f.txbNUP.Text       = dtgEmpleados.CurrentRow.Cells["NUP"].Value.ToString();
         f.txbTelefono.Text  = dtgEmpleados.CurrentRow.Cells["NumeroTelefono"].Value.ToString();
         f.txbEdad.Text      = dtgEmpleados.CurrentRow.Cells["Edad"].Value.ToString();
         f.ShowDialog();
         if (f._Confirmacion)
         {
             this.Cargar(true);
         }
     }
 }
        private void Agregar()
        {
            EdicionEmpleado f = new EdicionEmpleado(EdicionEmpleado.Opcion.INSERTAR);

            f.ShowDialog();
            if (f._Confirmacion)
            {
                this.Cargar();
            }
        }