using System;
|
|
namespace TProduct.WinFrmUI.TestBench
|
{
|
public partial class ViewWorkBenchInstrument701Dlg : DevExpress.XtraEditors.XtraForm
|
{
|
public ViewWorkBenchInstrument701Dlg()
|
{
|
InitializeComponent();
|
}
|
|
|
|
public void SetBindingData(Model.WorkBenchBase paras)
|
{
|
if (paras == null)
|
return;
|
var instruments = new BLL.WorkBenchInstrumentKedi().GetByBenchID(paras.ID);
|
if (instruments == null || instruments.Count < 1)
|
{
|
this.workBenchInstrumentCtrl1.SetBindingData(paras);
|
}
|
else
|
{
|
workBenchInstrumentCtrl1.SetBindingData(paras, instruments);
|
}
|
}
|
|
|
|
|
private void simpleBtnCancel_Click(object sender, EventArgs e)
|
{
|
this.Close();
|
}
|
}
|
}
|