private void LoadConfig() { posPrinter.ConfigLer(); cbbModelo.SetSelectedValue(posPrinter.ConfigLerValor <ACBrPosPrinterModelo>(ACBrSessao.PosPrinter, "Modelo")); cbbPortas.SelectedItem = posPrinter.ConfigLerValor <string>(ACBrSessao.PosPrinter, "Porta"); nudColunas.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter, "ColunasFonteNormal"); nudEspacos.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter, "EspacoEntreLinhas"); nudBuffer.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter, "LinhasBuffer"); nudLinhasPular.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter, "LinhasEntreCupons"); cbxControlePorta.Checked = posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter, "ControlePorta"); cbxCortarPapel.Checked = posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter, "CortaPapel"); cbxTraduzirTags.Checked = posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter, "TraduzirTags"); cbxIgnorarTags.Checked = posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter, "IgnorarTags"); txtArqLog.Text = posPrinter.ConfigLerValor <string>(ACBrSessao.PosPrinter, "ArqLog"); cbbPaginaCodigo.SetSelectedValue(posPrinter.ConfigLerValor <PosPaginaCodigo>(ACBrSessao.PosPrinter, "PaginaDeCodigo")); nudCodbarLargura.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Barras, "LarguraLinha"); nudCodbarAltura.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Barras, "Altura"); cbxCodbarExibeNumeros.Checked = posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter_Barras, "MostrarCodigo"); nudQRTipo.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_QRCode, "Tipo"); nudQRLargura.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_QRCode, "LarguraModulo"); nudQRErrorLevel.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_QRCode, "ErrorLevel"); nudLogoKC1.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Logo, "KeyCode1"); nudLogoKC2.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Logo, "KeyCode2"); nudLogoFatorX.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Logo, "FatorX"); nudLogoFatorY.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Logo, "FatorY"); nudGVON.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Gaveta, "TempoON"); nudGVOFF.Value = posPrinter.ConfigLerValor <int>(ACBrSessao.PosPrinter_Gaveta, "TempoOFF"); cbxGVInvertido.Checked = posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter_Gaveta, "SinalInvertido"); }
private void LoadConfig() { posPrinter.ConfigLer(); cbbModelo.SetSelectedValue(posPrinter.Config.Modelo); cbbPortas.SelectedItem = posPrinter.Config.Porta; nudColunas.Value = posPrinter.Config.ColunasFonteNormal; nudEspacos.Value = posPrinter.Config.EspacoEntreLinhas; nudBuffer.Value = posPrinter.Config.LinhasBuffer; nudLinhasPular.Value = posPrinter.Config.LinhasEntreCupons; cbxControlePorta.Checked = posPrinter.Config.ControlePorta; cbxCortarPapel.Checked = posPrinter.Config.CortaPapel; cbxTraduzirTags.Checked = posPrinter.Config.TraduzirTags; cbxIgnorarTags.Checked = posPrinter.Config.IgnorarTags; txtArqLog.Text = posPrinter.Config.ArqLog; cbbPaginaCodigo.SetSelectedValue(posPrinter.Config.PaginaDeCodigo); nudCodbarLargura.Value = posPrinter.Config.BarrasConfig.LarguraLinha; nudCodbarAltura.Value = posPrinter.Config.BarrasConfig.Altura; cbxCodbarExibeNumeros.Checked = posPrinter.Config.BarrasConfig.MostrarCodigo; nudQRTipo.Value = posPrinter.Config.QrCodeConfig.Tipo; nudQRLargura.Value = posPrinter.Config.QrCodeConfig.LarguraModulo; nudQRErrorLevel.Value = posPrinter.Config.QrCodeConfig.ErrorLevel; nudLogoKC1.Value = posPrinter.Config.LogoConfig.KeyCode1; nudLogoKC2.Value = posPrinter.Config.LogoConfig.KeyCode2; nudLogoFatorX.Value = posPrinter.Config.LogoConfig.FatorX; nudLogoFatorY.Value = posPrinter.Config.LogoConfig.FatorY; nudGVON.Value = posPrinter.Config.GavetaConfig.TempoON; nudGVOFF.Value = posPrinter.Config.GavetaConfig.TempoOFF; cbxGVInvertido.Checked = posPrinter.Config.GavetaConfig.SinalInvertido; }