private void FrmMain_Shown(object sender, EventArgs e) { SplashScreenManager.Show <FrmWait>(); try { cmbFormaEmissao.EnumDataSource(TipoEmissao.teNormal); cmbVersaoDF.EnumDataSource(VersaoMDFe.ve300); 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 ACBrMDFe.ConfigGravarValor(ACBrSessao.Principal, "LogNivel", 4); var logPath = Path.Combine(Application.StartupPath, "Logs"); if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); } ACBrMDFe.ConfigGravarValor(ACBrSessao.Principal, "LogPath", logPath); ACBrMDFe.ConfigGravar(); LoadConfig(); } finally { SplashScreenManager.Close(); } }