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) { } } }