UI/收银台窗口/收银台设置窗口.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using 收银系统.Data;

namespace 收银系统.UI.收银台窗口
{
    public partial class 收银台设置窗口 : Form
    {
        public 收银台设置窗口()
        {
            InitializeComponent();
        }

        private void 收银台设置窗口_Shown(object sender, EventArgs e)
        {
            //端口
            comboBox1.Text = 配置.取配置项("小票机端口","LPT1");
            //钱箱指令
            textBox1.Text = 配置.取配置项("钱箱指令", "27,112,0,128,128");
            //小票标题
            textBox2.Text = 配置.取配置项("小票标题", "  销 售 小 票");
            //小票尾部1
            textBox3.Text = 配置.取配置项("小票尾巴1", "           谢谢惠顾!");
            //小票尾部2
            textBox4.Text = 配置.取配置项("小票尾巴2", "         欢迎下次光临");

            //条码称模式
            string str = 配置.取配置项("条码称模式", "0");

            if (str == "0")
            {
                //选中13位价格码模式
                radioButton1.Checked = true;
            }
            else
            {
                //选中13位重量码模式
                radioButton2.Checked = true;
            }

            button1.Focus();
        }

        private void 收银台设置窗口_KeyDown(object sender, KeyEventArgs e)
        {
            if ( e.KeyCode== Keys.Escape )
            {
                this.Close();
            }
        }

        //保存:
        private void button1_Click(object sender, EventArgs e)
        {
后面还有 86 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。