private void FrmMain_Shown(object sender, EventArgs e) { cmbVersao.EnumDataSource(VersaoCTe.ve300); cmbModeloDocumento.EnumDataSource(ModeloCTe.moCTe); cmbCrypt.EnumDataSource(SSLCryptLib.cryWinCrypt); cmbHttp.EnumDataSource(SSLHttpLib.httpWinHttp); cmbXmlSign.EnumDataSource(SSLXmlSignLib.xsLibXml2); cmbUfDestino.SelectedItem = "SP"; cmbSSlType.EnumDataSource(SSLType.LT_all); // Altera as config de log ACBrCTe.ConfigGravarValor(ACBrSessao.Principal, "LogNivel", 4); var logPath = Path.Combine(Application.StartupPath, "Logs"); if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); } ACBrCTe.ConfigGravarValor(ACBrSessao.Principal, "LogPath", logPath); ACBrCTe.ConfigGravar(); LoadConfig(); }