Beispiel #1
0
        //构造函数
        public MonitorUnitCtrl(UsbInfo info)
        {
            InitializeComponent();
            InitializeColor();
            //创建处理类
            process = new MonitorUnitCtrlProcess(this);

            policeNo = "";
            nameT = info.TerminalNo;
            usbNo = process.GetBorderNo(nameT);

            this.Name = "Unit" + nameT;
            this.lblTerInfo.Content = nameT;

            this.lblCpStatus.Content = "拷贝";
            this.pgbCopy.Minimum = 0;
            this.pgbCopy.Maximum = 100;
            lblCpPerc.Content = "0% (-- / --)";

            this.lblChStatus.Content = "充电";
            this.pgbCharge.Minimum = 0;
            this.pgbCharge.Maximum = 100;
            lblChPerc.Content = "40% (06 : 00)";

            SetFocus(false);
            SetFree();
        }
Beispiel #2
0
        //构造函数
        public MonitorUnitCtrl()
        {
            InitializeComponent();

            //创建处理类
            process = new MonitorUnitCtrlProcess(this);
        }