private void btnGuardar_Click(object sender, EventArgs e)
        {
            try
            {
                string rpta = string.Empty;
                if (this.txtNombre.Text == string.Empty)
                {
                    MensajeError("Falta ingresar algunos datos, serán remarcados");
                    this.ErrorIcono.SetError(txtNombre, "Ingrese un Nombre");
                    this.ErrorIcono.SetError(txtApellidos, "Ingrese un Nombre");
                }
                else
                {
                    if (this.IsNuevo)
                    {
                        rpta = NTrabajador.Insertar(
                            this.txtNombre.Text.Trim().ToUpper(),
                            this.txtApellidos.Text.Trim().ToUpper(),
                            this.cbSexo.Text.Trim().ToUpper(),
                            (dtFechaNacimiento.Value),
                            this.txtNumDocumento.Text.Trim().ToUpper(),
                            this.txtDireccion.Text.Trim().ToUpper(),
                            this.txtTelefono.Text.Trim().ToUpper(),
                            this.txtEmail.Text.Trim().ToUpper(),
                            this.cbAcceso.Text.Trim().ToUpper(),
                            this.txtUsuario.Text.Trim().ToUpper(),
                            this.txtPassword.Text.Trim().ToUpper()

                            );
                    }
                    else if (this.IsEditar)
                    {
                        rpta = NTrabajador.Modificar(Convert.ToInt32(this.txtIdTrabajador.Text.Trim()),
                                                     this.txtNombre.Text.Trim().ToUpper(),
                                                     this.txtApellidos.Text.Trim().ToUpper(),
                                                     this.cbSexo.Text.Trim().ToUpper(),
                                                     (dtFechaNacimiento.Value),
                                                     this.txtNumDocumento.Text.Trim().ToUpper(),
                                                     this.txtDireccion.Text.Trim().ToUpper(),
                                                     this.txtTelefono.Text.Trim().ToUpper(),
                                                     this.txtEmail.Text.Trim().ToUpper(),
                                                     this.cbAcceso.Text.Trim().ToUpper(),
                                                     this.txtUsuario.Text.Trim().ToUpper(),
                                                     this.txtPassword.Text.Trim().ToUpper()
                                                     );
                    }

                    if (rpta.Equals("OK"))
                    {
                        if (this.IsNuevo)
                        {
                            this.MensajeOk("Se ingresó correctamente el registro");
                        }
                        else if (this.IsEditar)
                        {
                            this.MensajeOk("Se actualizó correctamente el registro");
                        }
                    }
                    else
                    {
                        this.MensajeError(rpta);
                    }

                    this.IsNuevo  = false;
                    this.IsEditar = false;
                    this.Botones();
                    this.Limpiar();
                    this.Consultar();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }
        }