private void ConfiguraConexion()
    {
        Conciliacion.RunTime.App objApp = new Conciliacion.RunTime.App();

        Conciliacion.Migracion.Runtime.App.UsuarioActual = txtUsuario.Text.Trim();

        AppSettingsReader settings = new AppSettingsReader();

        this.servidor  = settings.GetValue("Servidor", typeof(string)).ToString();
        this.baseDatos = settings.GetValue("Base", typeof(string)).ToString();

        if (settings.GetValue("Seguridad", typeof(string)).ToString() == "NT")
        {
            this.seguridad = SeguridadCB.Seguridad.TipoSeguridad.NT;
        }
        else
        {
            this.seguridad = SeguridadCB.Seguridad.TipoSeguridad.SQL;
        }
        if (seguridad == SeguridadCB.Seguridad.TipoSeguridad.NT)
        {
            cn.ConnectionString = "Application Name = Conciliación Bancaría" + " v.1.0.0.0" + "; Data Source = " + this.servidor + "; Initial Catalog = " +
                                  this.baseDatos + "; User ID = " + this.txtUsuario.Text.Trim() + "; Integrated Security = SSPI";
        }
        else
        {
            cn.ConnectionString = "Application Name = " + "; Data Source = " + this.servidor + "; Initial Catalog = " +
                                  this.baseDatos + "; User ID = " + this.txtUsuario.Text.Trim() + "; Password = " + this.txtClave.Text.Trim();
        }

        Conciliacion.Migracion.Runtime.App.CadenaConexion = cn.ConnectionString;
        objApp.CadenaConexion = cn.ConnectionString;
        objApp.CadenaConexion = cn.ConnectionString;
    }
        private void ConfiguraConexion()
        {
            Conciliacion.Migracion.Runtime.App.UsuarioActual = "ROPIMA";
            AppSettingsReader settings = new AppSettingsReader();

            this.servidor       = "192.168.1.38";
            this.baseDatos      = "SigametReportes";
            this.seguridad      = SeguridadCB.Seguridad.TipoSeguridad.SQL;
            cn.ConnectionString = "Application Name = " + "; Data Source = " + this.servidor + "; Initial Catalog = " +
                                  this.baseDatos + "; User ID = ROPIMA; Password = ROPIMA9999";
            Conciliacion.Migracion.Runtime.App.CadenaConexion = cn.ConnectionString;
        }