private void LoadConfig() { boleto.ConfigLer(); cmbModeloImpressao.SetSelectedValue(boleto.ConfigLerValor <ACBrBolLayOut>(ACBrSessao.BoletoBancoFCFortesConfig, "Layout")); chkPreview.Checked = boleto.ConfigLerValor <bool>(ACBrSessao.BoletoBancoFCFortesConfig, "MostrarPreview"); chkProgresso.Checked = boleto.ConfigLerValor <bool>(ACBrSessao.BoletoBancoFCFortesConfig, "MostrarProgresso"); chkSetup.Checked = boleto.ConfigLerValor <bool>(ACBrSessao.BoletoBancoFCFortesConfig, "MostrarSetup"); txtNomeArquivo.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoBancoFCFortesConfig, "NomeArquivo"); nudCopias.Value = boleto.ConfigLerValor <int>(ACBrSessao.BoletoBancoFCFortesConfig, "NumeroCopias"); cmbImpressora.SelectedItem = boleto.ConfigLerValor <string>(ACBrSessao.BoletoBancoFCFortesConfig, "PrinterName"); txtDirLogo.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoBancoFCFortesConfig, "DirLogo"); cmbBanco.SetSelectedValue(boleto.ConfigLerValor <ACBrTipoCobranca>(ACBrSessao.BoletoBancoConfig, "TipoCobranca")); txtAgencia.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Agencia"); txtDigAgencia.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "AgenciaDigito"); txtDigAgencia.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "AgenciaDigito"); txtConta.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Conta"); txtDigConta.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "ContaDigito"); txtCodTransmissao.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "CodigoTransmissao"); txtConvenio.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Convenio"); txtModalidade.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Modalidade"); txtCodCedente.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "CodigoCedente"); cmbRespEmissao.SetSelectedValue(boleto.ConfigLerValor <ACBrResponEmissao>(ACBrSessao.BoletoCedenteConfig, "ResponEmissao")); txtBairro.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Bairro"); txtCEP.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "CEP"); txtCidade.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Cidade"); txtCNPJCPF.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "CNPJCPF"); txtComplemento.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Complemento"); txtLogradouro.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Logradouro"); txtNomeRes.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Nome"); txtNumeroRes.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "NumeroRes"); txtTelefone.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "Telefone"); cmbUF.SelectedItem = boleto.ConfigLerValor <string>(ACBrSessao.BoletoCedenteConfig, "UF"); cmbTipoCarteira.SetSelectedValue(boleto.ConfigLerValor <ACBrTipoCarteira>(ACBrSessao.BoletoCedenteConfig, "TipoCarteira")); cmbTipoDocumento.SetSelectedValue(boleto.ConfigLerValor <ACBrTipoDocumento>(ACBrSessao.BoletoCedenteConfig, "TipoDocumento")); cmbTipoInscricao.SetSelectedValue(boleto.ConfigLerValor <ACBrPessoa>(ACBrSessao.BoletoCedenteConfig, "TipoInscricao")); txtDirRemessa.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoDiretorioConfig, "DirArqRemessa"); txtDirRetorno.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoDiretorioConfig, "DirArqRetorno"); cmbLayoutCNAB.SetSelectedValue(boleto.ConfigLerValor <ACBrLayoutRemessa>(ACBrSessao.BoletoDiretorioConfig, "LayoutRemessa")); txtNomeRemessa.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoDiretorioConfig, "NomeArqRemessa"); txtNomeRetorno.Text = boleto.ConfigLerValor <string>(ACBrSessao.BoletoDiretorioConfig, "NomeArqRetorno"); ckbCedenteRetorno.Checked = boleto.ConfigLerValor <bool>(ACBrSessao.BoletoDiretorioConfig, "LeCedenteRetorno"); txtNome.Text = boleto.ConfigLerValor <string>(ACBrSessao.Email, "Nome"); txtEmail.Text = boleto.ConfigLerValor <string>(ACBrSessao.Email, "Conta"); txtUsuario.Text = boleto.ConfigLerValor <string>(ACBrSessao.Email, "Usuario"); txtSenha.Text = boleto.ConfigLerValor <string>(ACBrSessao.Email, "Senha"); txtHost.Text = boleto.ConfigLerValor <string>(ACBrSessao.Email, "Servidor"); nudPorta.Value = boleto.ConfigLerValor <int>(ACBrSessao.Email, "Porta"); ckbSSL.Checked = boleto.ConfigLerValor <bool>(ACBrSessao.Email, "SSL"); ckbTLS.Checked = boleto.ConfigLerValor <bool>(ACBrSessao.Email, "TLS"); }