| | |
| | | }; |
| | | |
| | | |
| | | this._partInfoCtrl.OnChangePumpInfo += (rateParas) => |
| | | this._partInfoCtrl.OnChangeRatedParas += (rateParas) => |
| | | { |
| | | if (rateParas != this._ratedParas.ToJson()) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | if(this._currentPump == null) |
| | | { |
| | | this._partInfoCtrl.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | |
| | | this._partInfoCtrl.SetBindingData( |
| | | this._currentPump, |
| | | this._currentMotor, |
| | | this._currentPart, |
| | | this._testItem.ElectricInfo); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | var elementHost1 = new System.Windows.Forms.Integration.ElementHost(); |
| | | TProduct.ProcessDrawing.MainView.MainDisplayWindow process_ctrl = new TProduct.ProcessDrawing.MainView.MainDisplayWindow(); |
| | | process_ctrl.SetCurrentPipeIndex(this._workBenchInfo.PipeIndex); |
| | | process_ctrl.SetCurrentPipelineID(this._workBenchInfo.PipelineID); |
| | | process_ctrl.SetContaiterSize(tabPage3D.Width, tabPage3D.Height); |
| | | |
| | | elementHost1.Dock = System.Windows.Forms.DockStyle.Fill; |