private void btnConfiguracoes_Click(object sender, EventArgs e) { if (!Caixa.Status.IsIn(StatusVenda.Finalizada, StatusVenda.Livre, StatusVenda.Cancelada)) { return; } SplashScreenManager.Show <FrmWait>(); try { tbcViews.SelectedTab = tbpConfiguracoes; plnBobina.Enabled = false; plnBobina.Hide(); plnBobina.Hide(); } finally { SplashScreenManager.Close(); } }
private void ExportarConfig() { var file = Helpers.SaveFile("Arquivo de Configuração (*.cfz)|*.cfz"); if (string.IsNullOrEmpty(file)) { return; } SplashScreenManager.Show <FrmWait>(); SaveConfig(); try { using (var stream = new FileStream(file, FileMode.OpenOrCreate)) using (var arquivo = new ZipArchive(stream, ZipArchiveMode.Update)) { if (arquivo.Entries.Any()) { ZipArchiveEntry entry; do { entry = arquivo.Entries.FirstOrDefault(); entry?.Delete(); } while (entry != null); } arquivo.CreateEntryFromFile(Path.Combine(Application.StartupPath, "ACBrLib.ini"), "ACBrLib.ini"); arquivo.CreateEntryFromFile(Path.Combine(Application.StartupPath, "acbr.config"), "acbr.config"); } } finally { SplashScreenManager.Close(); } }
private void SalvarConfig() { SplashScreenManager.Show <FrmWait>(); SplashScreenManager.Default.ShowInfo(SplashInfo.Message, "Salvando..."); try { //Config Geral ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "AtualizarXMLCancelado", ckbAtualizarXML.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "ExibirErroSchema", ckbExibirErroSchema.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "FormatoAlerta", txtFormatoAlerta.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "FormaEmissao", cmbFormaEmissao.GetSelectedValue <TipoEmissao>()); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "ModeloDF", cmbModeloDocumento.GetSelectedValue <ModeloNFe>()); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "VersaoDF", cmbVersaoDF.GetSelectedValue <VersaoNFe>()); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "RetirarAcentos", ckbRetirarAcentos.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SalvarWS", ckbSalvar.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "PathSalvar", txtLogs.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "PathSchemas", txtSchemaPath.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "IdCSC", txtIdCSC.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "CSC", txtCSC.Text); //Config Webservice ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "UF", cmbUfDestino.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SSLType", cmbSSlType.GetSelectedValue <SSLType>()); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "Timeout", nudTimeOut.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "Ambiente", rdbHomologacao.Checked ? TipoAmbiente.taHomologacao : TipoAmbiente.taProducao); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "Visualizar", ckbVisualizar.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SalvarWS", ckbSalvarSOAP.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "AjustaAguardaConsultaRet", ckbAjustarAut.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "AguardarConsultaRet", (int)nudAguardar.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "Tentativas", (int)nudTentativas.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "IntervaloTentativas", (int)nudIntervalos.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.Proxy, "Servidor", txtProxyServidor.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Proxy, "Porta", nudProxyPorta.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Proxy, "Usuario", txtProxyUsuario.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Proxy, "Senha", txtProxySenha.Text); //Config Certificado ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "SSLCryptLib", cmbCrypt.GetSelectedValue <SSLCryptLib>()); ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "SSLHttpLib", cmbHttp.GetSelectedValue <SSLHttpLib>()); ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "SSLXmlSignLib", cmbXmlSign.GetSelectedValue <SSLXmlSignLib>()); ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "ArquivoPFX", txtCertPath.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "DadosPFX", txtDadosPFX.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "Senha", txtCertPassword.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.DFe, "NumeroSerie", txtCertNumero.Text); //Config Arquivos ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SalvarGer", ckbSalvarArqs.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SepararPorMes", ckbPastaMensal.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "AdicionarLiteral", ckbAdicionaLiteral.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "EmissaoPathNFe", ckbEmissaoPathNFe.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SalvarArq", ckbSalvaPathEvento.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SepararPorCNPJ", ckbSepararPorCNPJ.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "SepararPorModelo", ckbSepararPorModelo.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "PathNFe", txtArqNFe.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "PathInu", txtArqInu.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.NFe, "PathEvento", txtArqEvento.Text); //Config Documento Auxiliar ACBrNFe.ConfigGravarValor(ACBrSessao.DANFE, "PathLogo", txtLogomarca.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.DANFE, "TipoDANFE", rdbRetrato.Checked ? TipoDANFE.tiRetrato : TipoDANFE.tiPaisagem); var relNFCe = rdbFortes.Checked ? TipoRelatorioBobina.tpFortes : rdbEscPos.Checked ? TipoRelatorioBobina.tpEscPos : TipoRelatorioBobina.tpFortesA4; ACBrNFe.ConfigGravarValor(ACBrSessao.DANFENFCe, "TipoRelatorioBobina", relNFCe); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "Modelo", cbbModelo.GetSelectedValue <ACBrPosPrinterModelo>()); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "Porta", cbbPortas.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "ColunasFonteNormal", (int)nudColunas.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "EspacoEntreLinhas", (int)nudEspacos.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "LinhasBuffer", (int)nudBuffer.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "LinhasEntreCupons", (int)nudLinhasPular.Value); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "ControlePorta", cbxControlePorta.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "CortaPapel", cbxCortarPapel.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "TraduzirTags", cbxTraduzirTags.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "IgnorarTags", cbxIgnorarTags.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.PosPrinter, "PaginaDeCodigo", cbbPaginaCodigo.GetSelectedValue <PosPaginaCodigo>()); //Config Email ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "Nome", txtNome.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "Conta", txtEmail.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "Usuario", txtUsuario.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "Senha", txtSenha.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "Servidor", txtHost.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "Porta", nudPorta.Text); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "SSL", ckbSSL.Checked); ACBrNFe.ConfigGravarValor(ACBrSessao.Email, "TLS", ckbTLS.Checked); ACBrNFe.ConfigGravar(""); Application.DoEvents(); } finally { SplashScreenManager.Close(); } }
private void SalvarConfig() { SplashScreenManager.Show <FrmWait>(); SplashScreenManager.Default.ShowInfo(SplashInfo.Message, "Salvando..."); try { //Config Geral ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "ExibirErroSchema", ckbExibirErroSchema.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "FormatoAlerta", txtFormatoAlerta.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "FormaEmissao", cmbFormaEmissao.GetSelectedValue <TipoEmissao>()); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "VersaoDF", cmbVersaoDF.GetSelectedValue <VersaoMDFe>()); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "RetirarAcentos", ckbRetirarAcentos.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SalvarWS", ckbSalvar.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "PathSalvar", txtLogs.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "PathSchemas", txtSchemaPath.Text); //Config Webservice ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "UF", cmbUfDestino.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SSLType", cmbSSlType.GetSelectedValue <SSLType>()); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "Timeout", nudTimeOut.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "Ambiente", rdbHomologacao.Checked ? TipoAmbiente.taHomologacao : TipoAmbiente.taProducao); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "Visualizar", ckbVisualizar.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SalvarWS", ckbSalvarSOAP.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "AjustaAguardaConsultaRet", ckbAjustarAut.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "AguardarConsultaRet", (int)nudAguardar.Value); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "Tentativas", (int)nudTentativas.Value); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "IntervaloTentativas", (int)nudIntervalos.Value); ACBrMDFe.ConfigGravarValor(ACBrSessao.Proxy, "Servidor", txtProxyServidor.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Proxy, "Porta", nudProxyPorta.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Proxy, "Usuario", txtProxyUsuario.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Proxy, "Senha", txtProxySenha.Text); //Config Certificado ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "SSLCryptLib", cmbCrypt.GetSelectedValue <SSLCryptLib>()); ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "SSLHttpLib", cmbHttp.GetSelectedValue <SSLHttpLib>()); ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "SSLXmlSignLib", cmbXmlSign.GetSelectedValue <SSLXmlSignLib>()); ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "ArquivoPFX", txtCertPath.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "DadosPFX", txtDadosPFX.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "Senha", txtCertPassword.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.DFe, "NumeroSerie", txtCertNumero.Text); //Config Arquivos ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SalvarGer", ckbSalvarArqs.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SepararPorMes", ckbPastaMensal.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "AdicionarLiteral", ckbAdicionaLiteral.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "EmissaoPathMDFe", ckbEmissaoPathNFe.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SalvarArq", ckbSalvaPathEvento.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SepararPorCNPJ", ckbSepararPorCNPJ.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "SepararPorModelo", ckbSepararPorModelo.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "PathMDFe", txtArqMDFe.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.MDFe, "PathEvento", txtArqEvento.Text); //Config Documento Auxiliar ACBrMDFe.ConfigGravarValor(ACBrSessao.DAMDFe, "PathLogo", txtLogomarca.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.DAMDFe, "TipoDAMDFe", rdbRetrato.Checked ? TipoDAMDFE.tiRetrato : TipoDAMDFE.tiPaisagem); //Config Email ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "Nome", txtNome.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "Conta", txtEmail.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "Usuario", txtUsuario.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "Senha", txtSenha.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "Servidor", txtHost.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "Porta", nudPorta.Text); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "SSL", ckbSSL.Checked); ACBrMDFe.ConfigGravarValor(ACBrSessao.Email, "TLS", ckbTLS.Checked); ACBrMDFe.ConfigGravar(""); Application.DoEvents(); } finally { SplashScreenManager.Close(); } }
private void SalvarConfig() { SplashScreenManager.Show <FrmWait>(); SplashScreenManager.ShowInfo(SplashInfo.Message, "Salvando..."); try { //Config Geral gnre.Config.ExibirErroSchema = ckbExibirErroSchema.Checked; gnre.Config.FormatoAlerta = txtFormatoAlerta.Text; gnre.Config.FormaEmissao = cmbFormaEmissao.GetSelectedValue <TipoEmissao>(); gnre.Config.VersaoDF = cmbVersaoDF.GetSelectedValue <VersaoGNRe>(); gnre.Config.RetirarAcentos = ckbRetirarAcentos.Checked; gnre.Config.SalvarWS = ckbSalvar.Checked; gnre.Config.PathSalvar = txtLogs.Text; gnre.Config.PathSchemas = txtSchemaPath.Text; //Config Webservice gnre.Config.DFe.UF = cmbUfDestino.Text; gnre.Config.SSLType = cmbSSlType.GetSelectedValue <SSLType>(); gnre.Config.Timeout = (int)nudTimeOut.Value; gnre.Config.Ambiente = rdbHomologacao.Checked ? TipoAmbiente.taHomologacao : TipoAmbiente.taProducao; gnre.Config.Visualizar = ckbVisualizar.Checked; gnre.Config.SalvarWS = ckbSalvarSOAP.Checked; gnre.Config.AjustaAguardaConsultaRet = ckbAjustarAut.Checked; gnre.Config.AguardarConsultaRet = (int)nudAguardar.Value; gnre.Config.Tentativas = (int)nudTentativas.Value; gnre.Config.IntervaloTentativas = (int)nudIntervalos.Value; gnre.Config.Proxy.Servidor = txtProxyServidor.Text; gnre.Config.Proxy.Porta = nudProxyPorta.Text; gnre.Config.Proxy.Usuario = txtProxyUsuario.Text; gnre.Config.Proxy.Senha = txtProxySenha.Text; //Config Certificado gnre.Config.DFe.SSLCryptLib = cmbCrypt.GetSelectedValue <SSLCryptLib>(); gnre.Config.DFe.SSLHttpLib = cmbHttp.GetSelectedValue <SSLHttpLib>(); gnre.Config.DFe.SSLXmlSignLib = cmbXmlSign.GetSelectedValue <SSLXmlSignLib>(); gnre.Config.DFe.ArquivoPFX = txtCertPath.Text; gnre.Config.DFe.Senha = txtCertPassword.Text; gnre.Config.DFe.NumeroSerie = txtCertNumero.Text; //Config Arquivos gnre.Config.SalvarGer = ckbSalvarArqs.Checked; gnre.Config.SepararPorMes = ckbPastaMensal.Checked; gnre.Config.AdicionarLiteral = ckbAdicionaLiteral.Checked; gnre.Config.EmissaoPathGNRe = ckbEmissaoPathGNRe.Checked; gnre.Config.SepararPorCNPJ = ckbSepararPorCNPJ.Checked; gnre.Config.SepararPorModelo = ckbSepararPorModelo.Checked; gnre.Config.PathGNRe = txtArqGNRe.Text; //Config Email gnre.Config.Email.Nome = txtNome.Text; gnre.Config.Email.Conta = txtEmail.Text; gnre.Config.Email.Usuario = txtUsuario.Text; gnre.Config.Email.Senha = txtSenha.Text; gnre.Config.Email.Servidor = txtHost.Text; gnre.Config.Email.Porta = nudPorta.Text; gnre.Config.Email.SSL = ckbSSL.Checked; gnre.Config.Email.TLS = ckbTLS.Checked; gnre.ConfigGravar(); Application.DoEvents(); } finally { SplashScreenManager.Close(); } }
private void SalvarConfig() { SplashScreenManager.Show <FrmWait>(); SplashScreenManager.ShowInfo(SplashInfo.Message, "Salvando..."); try { //Config Geral ACBrNFe.Config.AtualizarXMLCancelado = ckbAtualizarXML.Checked; ACBrNFe.Config.ExibirErroSchema = ckbExibirErroSchema.Checked; ACBrNFe.Config.FormatoAlerta = txtFormatoAlerta.Text; ACBrNFe.Config.FormaEmissao = cmbFormaEmissao.GetSelectedValue <TipoEmissao>(); ACBrNFe.Config.ModeloDF = cmbModeloDocumento.GetSelectedValue <ModeloNFe>(); ACBrNFe.Config.VersaoDF = cmbVersaoDF.GetSelectedValue <VersaoNFe>(); ACBrNFe.Config.RetirarAcentos = ckbRetirarAcentos.Checked; ACBrNFe.Config.SalvarWS = ckbSalvar.Checked; ACBrNFe.Config.PathSalvar = txtLogs.Text; ACBrNFe.Config.PathSchemas = txtSchemaPath.Text; ACBrNFe.Config.IdCSC = txtIdCSC.Text; ACBrNFe.Config.CSC = txtCSC.Text; //Config Webservice ACBrNFe.Config.DFe.UF = cmbUfDestino.Text; ACBrNFe.Config.SSLType = cmbSSlType.GetSelectedValue <SSLType>(); ACBrNFe.Config.Timeout = (int)nudTimeOut.Value; ACBrNFe.Config.Ambiente = rdbHomologacao.Checked ? TipoAmbiente.taHomologacao : TipoAmbiente.taProducao; ACBrNFe.Config.Visualizar = ckbVisualizar.Checked; ACBrNFe.Config.SalvarWS = ckbSalvarSOAP.Checked; ACBrNFe.Config.AjustaAguardaConsultaRet = ckbAjustarAut.Checked; ACBrNFe.Config.AguardarConsultaRet = (int)nudAguardar.Value; ACBrNFe.Config.Tentativas = (int)nudTentativas.Value; ACBrNFe.Config.IntervaloTentativas = (int)nudIntervalos.Value; ACBrNFe.Config.Proxy.Servidor = txtProxyServidor.Text; ACBrNFe.Config.Proxy.Porta = nudProxyPorta.Text; ACBrNFe.Config.Proxy.Usuario = txtProxyUsuario.Text; ACBrNFe.Config.Proxy.Senha = txtProxySenha.Text; //Config Certificado ACBrNFe.Config.DFe.SSLCryptLib = cmbCrypt.GetSelectedValue <SSLCryptLib>(); ACBrNFe.Config.DFe.SSLHttpLib = cmbHttp.GetSelectedValue <SSLHttpLib>(); ACBrNFe.Config.DFe.SSLXmlSignLib = cmbXmlSign.GetSelectedValue <SSLXmlSignLib>(); ACBrNFe.Config.DFe.ArquivoPFX = txtCertPath.Text; ACBrNFe.Config.DFe.Senha = txtCertPassword.Text; ACBrNFe.Config.DFe.NumeroSerie = txtCertNumero.Text; ACBrNFe.Config.DFe.DadosPFX = txtDadosPFX.Text; //Config Arquivos ACBrNFe.Config.SalvarGer = ckbSalvarArqs.Checked; ACBrNFe.Config.SepararPorMes = ckbPastaMensal.Checked; ACBrNFe.Config.AdicionarLiteral = ckbAdicionaLiteral.Checked; ACBrNFe.Config.EmissaoPathNFe = ckbEmissaoPathNFe.Checked; ACBrNFe.Config.SalvarArq = ckbSalvaPathEvento.Checked; ACBrNFe.Config.SepararPorCNPJ = ckbSepararPorCNPJ.Checked; ACBrNFe.Config.SepararPorModelo = ckbSepararPorModelo.Checked; ACBrNFe.Config.PathNFe = txtArqNFe.Text; ACBrNFe.Config.PathInu = txtArqInu.Text; ACBrNFe.Config.PathEvento = txtArqEvento.Text; //Config Documento Auxiliar ACBrNFe.Config.DANFe.PathLogo = txtLogomarca.Text; ACBrNFe.Config.DANFe.TipoDANFE = rdbRetrato.Checked ? TipoDANFE.tiRetrato : TipoDANFE.tiPaisagem; var relNFCe = rdbFortes.Checked ? TipoRelatorioBobina.tpFortes : rdbEscPos.Checked ? TipoRelatorioBobina.tpEscPos : TipoRelatorioBobina.tpFortesA4; ACBrNFe.Config.DANFe.NFCe.TipoRelatorioBobina = relNFCe; ACBrNFe.Config.PosPrinter.Modelo = cbbModelo.GetSelectedValue <ACBrPosPrinterModelo>(); ACBrNFe.Config.PosPrinter.Porta = cbbPortas.Text; ACBrNFe.Config.PosPrinter.ColunasFonteNormal = (int)nudColunas.Value; ACBrNFe.Config.PosPrinter.EspacoEntreLinhas = (int)nudEspacos.Value; ACBrNFe.Config.PosPrinter.LinhasBuffer = (int)nudBuffer.Value; ACBrNFe.Config.PosPrinter.LinhasEntreCupons = (int)nudLinhasPular.Value; ACBrNFe.Config.PosPrinter.ControlePorta = cbxControlePorta.Checked; ACBrNFe.Config.PosPrinter.CortaPapel = cbxCortarPapel.Checked; ACBrNFe.Config.PosPrinter.TraduzirTags = cbxTraduzirTags.Checked; ACBrNFe.Config.PosPrinter.IgnorarTags = cbxIgnorarTags.Checked; ACBrNFe.Config.PosPrinter.PaginaDeCodigo = cbbPaginaCodigo.GetSelectedValue <PosPaginaCodigo>(); //Config Email ACBrNFe.Config.Email.Nome = txtNome.Text; ACBrNFe.Config.Email.Conta = txtEmail.Text; ACBrNFe.Config.Email.Usuario = txtUsuario.Text; ACBrNFe.Config.Email.Senha = txtSenha.Text; ACBrNFe.Config.Email.Servidor = txtHost.Text; ACBrNFe.Config.Email.Porta = nudPorta.Text; ACBrNFe.Config.Email.SSL = ckbSSL.Checked; ACBrNFe.Config.Email.TLS = ckbTLS.Checked; ACBrNFe.ConfigGravar(); Application.DoEvents(); } finally { SplashScreenManager.Close(); } }