private void btnAceptar_Click(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(txtRazonSocial.Text.Trim()))
                {
                    MessageBox.Show("Debe Ingresar RazonSocial", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }
                else if ((string.IsNullOrEmpty(txtRuc.Text.Trim())))
                {
                    MessageBox.Show("Debe Ingresar Ruc", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }

                DataSet      dsTercercaso = new DataSet();
                TercercasoBE TercercasoBE = new TercercasoBE()
                {
                    OPCION       = 2,
                    USUARIO      = General.General.GetCodigoUsuario,
                    IdTercerCaso = string.IsNullOrEmpty(Codigo) ? String.Empty : Codigo,
                    Razonsocial  = txtRazonSocial.Text.Trim(),
                    Ruc          = txtRuc.Text.Trim(),
                    FlgValSocio  = FlgValSocio
                };

                dsTercercaso = TercerCasoBL.ProcesarTercerCaso(TercercasoBE);

                if (dsTercercaso.Tables[0].Rows.Count == 1)
                {
                    MessageBox.Show("Se Proceso Correctamente", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (dsTercercaso.Tables[0].Rows.Count == 0)
                {
                    MessageBox.Show("El Ruc ingresado ya existe", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }
                RazonSocialSocio = dsTercercaso.Tables[0].Rows[0]["RazonSocial"].ToString();
                Ruc = dsTercercaso.Tables[0].Rows[0]["Ruc"].ToString();
                this.Dispose();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }