using TProduct.Model;
|
|
|
namespace TProduct.WinFrmUI.TValve
|
{
|
/// <summary>
|
/// 性能测试
|
/// </summary>
|
public partial class FeatTestViewMainPage
|
{
|
private void IntialPartInfoCtrl()
|
{
|
if (_partInfoCtrl == null)
|
{
|
this._partInfoCtrl = new TProduct.WinFrmUI.TValve.PartInfoCtrl();
|
|
this._partInfoCtrl.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
this._partInfoCtrl.Appearance.Options.UseBackColor = true;
|
this._partInfoCtrl.Dock = System.Windows.Forms.DockStyle.Fill;
|
this._partInfoCtrl.Location = new System.Drawing.Point(0, 0);
|
this._partInfoCtrl.Name = "featTestIngPartInfoDlg1";
|
|
this._partInfoCtrl.Size = new System.Drawing.Size(967, 555);
|
|
this._partInfoCtrl.TabIndex = 0;
|
|
this.tabPagePartInfo.Controls.Add(this._partInfoCtrl);
|
|
|
this._partInfoCtrl.OnChangePumpInfo += (rateParas) =>
|
{
|
|
};
|
}
|
|
|
this._partInfoCtrl.SetBindingData(
|
this._currentValve,
|
this._currentPart);
|
}
|
|
//PumpTestBimfaceViewCtrl _model3dCtrl = null;
|
private void InitialModel3d()
|
{
|
this.tabPage3D.PageVisible = false;//暂时不需要
|
|
//if (_model3dCtrl == null)
|
//{
|
// //_model3dCtrl = new PumpTestBimfaceViewCtrl();
|
// //_model3dCtrl.Dock = DockStyle.Fill;
|
// //_model3dCtrl.Name = "PumpTestBimfaceViewCtrl";
|
|
// //string error_info;
|
// //if (_model3dCtrl.SetBindingData(out error_info) == false)
|
// //{
|
// // MessageBox.Show(error_info);
|
// // return;
|
// //}
|
|
// //this.tabPage3D.Controls.Add(_model3dCtrl);
|
//}
|
}
|
|
|
private void barBtn测试台仪表参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
var frm = TProduct.WinFrmUI.TestBench.InstrumentDialog.BuildDialog(this._workBenchInfo);
|
frm.Show();
|
}
|
|
private void barBtn测试台测点参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
TProduct.WinFrmUI.TestBench.ListWorkBenchMonitorPointDlg frm = new TProduct.WinFrmUI.TestBench.ListWorkBenchMonitorPointDlg();
|
frm.SetBindingData(this._workBenchInfo);
|
frm.Show();
|
}
|
|
|
}
|
}
|