private void FrmMain_Shown(object sender, EventArgs e) { cbbPortas.Items.Add("LPT1"); cbbPortas.Items.Add("LPT2"); cbbPortas.Items.Add(@"\\localhost\Epson"); cbbPortas.Items.Add(@"c:\temp\posprinter.txt"); cbbPortas.SelectedIndex = cbbPortas.Items.Count - 1; cbbPortas.Items.Add("TCP:192.168.0.31:9100"); foreach (string printer in PrinterSettings.InstalledPrinters) { cbbImpressora.Items.Add(printer); cbbPortas.Items.Add($"RAW:{printer}"); } cmbModeloSat.EnumDataSource(SATModelo.satNenhum); cmbImpressao.EnumDataSource(TipoExtrato.tpFortes); cbbModelo.EnumDataSource(ACBrPosPrinterModelo.ppTexto); cbbPaginaCodigo.EnumDataSource(PosPaginaCodigo.pc850); // Altera as config de log acbrSat.ConfigGravarValor(ACBrSessao.Principal, "LogNivel", NivelLog.logParanoico); var logPath = Path.Combine(Application.StartupPath, "Logs"); if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); } acbrSat.ConfigGravarValor(ACBrSessao.Principal, "LogPath", logPath); acbrSat.ConfigGravar(); LoadConfig(); }