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\etq.txt"); cbbPortas.SelectedIndex = cbbPortas.Items.Count - 1; cbbPortas.Items.Add("TCP:192.168.0.31:9100"); foreach (string printer in PrinterSettings.InstalledPrinters) { cbbPortas.Items.Add($"RAW:{printer}"); } comboBoxModelo.EnumDataSource(ETQModelo.etqNenhum); comboBoxDPI.EnumDataSource(ETQDPI.dpi300); comboBoxBackFeed.EnumDataSource(ETQBackFeed.bfNone); // Altera as config de log acbrEtq.ConfigGravarValor(ACBrSessao.Principal, "LogNivel", "4"); var logPath = Path.Combine(Application.StartupPath, "Docs"); if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); } acbrEtq.ConfigGravarValor(ACBrSessao.Principal, "LogPath", logPath); acbrEtq.ConfigGravar(); LoadConfig(); }