Пример #1
0
 private void btnTagsLogo_Click(object sender, EventArgs e)
 {
     txtImpressao.AppendLine("</zera>");
     txtImpressao.AppendLine("</ce>");
     txtImpressao.AppendLine("<logo_imprimir>" + (posPrinter.ConfigLerValor <bool>(ACBrSessao.PosPrinter_Logo, "IgnorarLogo") ? "0" : "1") + "</logo_imprimir>");
     txtImpressao.AppendLine("<logo_kc1>" + nudLogoKC1.Text + "</logo_kc1>");
     txtImpressao.AppendLine("<logo_kc2>" + nudLogoKC2.Text + "</logo_kc2>");
     txtImpressao.AppendLine("<logo_fatorx>" + nudLogoFatorX.Text + "</logo_fatorx>");
     txtImpressao.AppendLine("<logo_fatory>" + nudLogoFatorY.Text + "</logo_fatory>");
     txtImpressao.AppendLine("</logo>");
     txtImpressao.AppendLine("</corte_total>");
 }
Пример #2
0
        private void btnSerial_Click(object sender, EventArgs e)
        {
            using (var form = new FrmSerial())
            {
                form.Device = new ACBrDevice(posPrinter.ConfigLerValor <string>(ACBrSessao.PosPrinter, "Device"))
                {
                    Porta = (string)cbbPortas.SelectedItem
                };

                if (form.ShowDialog(this) != DialogResult.OK)
                {
                    return;
                }

                cbbPortas.SelectedItem = form.Device.Porta;

                posPrinter.ConfigGravarValor(ACBrSessao.PosPrinter, "Porta", form.Device.Porta);
                posPrinter.ConfigGravarValor(ACBrSessao.PosPrinter, "TimeOut", form.Device.TimeOut);
                posPrinter.ConfigGravarValor(ACBrSessao.PosPrinter, "Device", form.Device);
                posPrinter.ConfigGravar();
            }
        }