tx
2025-04-10 2538101febc78f525945da72c7cdcb2589f9e6ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace TProduct.WinFrmUI.TestBench
{
    public partial class ViewSingleInstrumentShunCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public ViewSingleInstrumentShunCtrl()
        {
            InitializeComponent();
        }
 
 
 
 
 
        public void SetBindingData(Model.WorkBenchBase paras,
            Model.WorkBenchInstrumentShun instrument)
        {
            if (paras == null)
                return;
            this.txtLinkInstrumentNO.EditValue = instrument.SZ02NO;
            this.txtSZ02Adress.Address = instrument.SZ02Address;
            this.txtSZ02Adress.IsHideToggle16();
            this.txtComBaudRate.EditValue = instrument.ComBaudRate;
            this.txtComPortName.EditValue = instrument.ComPortName;
            this.workBenchInstrumentShunPortAnaCtrl1.SetBindingData(paras, instrument);
            this.workBenchInstrumentShunPortRS485Ctrl1.SetBindingData(paras, instrument);
        }
 
        private void txtSZ02Adress_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
        {
 
        }
    }
}