示例#1
0
        private void SaveConfig()
        {
            ExecuteSafe(() =>
            {
                config.Set("CaminhoConfiguracoes", txtFolderConfig.Text);
                config.Set("CaminhoArqCidades", txtArquivoCidades.Text);

                config.Save();
            });
        }
示例#2
0
        private void SaveConfig()
        {
            config.Set("PrestadorCPFCNPJ", txtCPFCNPJ.Text.OnlyNumbers());
            config.Set("PrestadorIM", txtIM.Text.OnlyNumbers());
            config.Set("PrestadorRazaoSocial", txtRazaoSocial.Text);
            config.Set("PrestadorFantasia", txtFantasia.Text);
            config.Set("PrestadorFone", txtFone.Text);
            config.Set("PrestadorCEP", txtCEP.Text);
            config.Set("PrestadorEndereco", txtEndereco.Text);
            config.Set("PrestadorNumero", txtNumero.Text);
            config.Set("PrestadorComplemento", txtComplemento.Text);
            config.Set("PrestadorBairro", txtBairro.Text);

            config.Set("Municipio", txtCodCidade.Text.OnlyNumbers());

            config.Set("Ambiente", cmbAmbiente.GetSelectedValue <DFeTipoAmbiente>());

            config.Set("Certificado", txtCertificado.Text);
            config.Set("Senha", txtSenha.Text);
            config.Set("NumeroSerie", txtNumeroSerie.Text);

            config.Save();
        }
示例#3
0
        private void SaveConfig()
        {
            config.Set("Certificado", txtCertificado.Text);
            config.SetCrypt("Senha", txtSenha.Text);
            config.Set("NumeroSerie", txtNumeroSerie.Text);

            config.Set("SalvarSoap", chkSalvarSoap.Checked);
            config.Set("PathSoap", txtArquivosSoap.Text);
            config.Set("UF", (int)cbbUfWebservice.GetSelectedValue <DFeCodUF>());
            config.Set("Ambiente", rdbProducao.Checked ? "1" : "2");
            config.Set("TimeOut", (int)nudTimeOut.Value);
            config.Set("ProxyHost", txtProxyHost.Text);
            config.Set("ProxyPort", txtProxyPort.Text);
            config.Set("ProxyUser", txtProxyUser.Text);
            config.SetCrypt("ProxyPass", txtProxyPass.Text);

            config.Set("PathSchemas", txtSchemas.Text);
            config.Set("PathCTe", txtPathCTe.Text);
            config.Set("PathServicos", txtArquivoServicos.Text);

            config.Save();
            AplicarConfig();
        }