public HeaterEditor(HeaterControl heaterCtrl) : base(heaterCtrl) { // // Required for Windows Form Designer support // // InitializeComponent(); Heater heater = this.HeaterCtrl.Heater; this.Text = "Heater: " + heater.Name; //this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 100); //this.groupBoxTwoStreamUnitOp.Text = "Heater"; //HeaterLabelsControl heaterLabelsCtrl = new HeaterLabelsControl(heaterCtrl.Heater); //this.groupBoxTwoStreamUnitOp.Controls.Add(heaterLabelsCtrl); //heaterLabelsCtrl.Location = new Point(4, 12 + 20 + 2); //HeaterValuesControl heaterValuesCtrl = new HeaterValuesControl(this.HeaterCtrl); //this.groupBoxTwoStreamUnitOp.Controls.Add(heaterValuesCtrl); //heaterValuesCtrl.Location = new Point(196, 12 + 20 + 2); initializeGrid(heaterCtrl, columnIndex, false, "Heater"); }
public HeaterEditor(HeaterControl heaterCtrl) : base(heaterCtrl) { // // Required for Windows Form Designer support // InitializeComponent(); Heater heater = this.HeaterCtrl.Heater; this.Text = "Heater: " + heater.Name; this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 100); this.groupBoxTwoStreamUnitOp.Text = "Heater"; ProcessVarLabelsControl heaterLabelsCtrl = new ProcessVarLabelsControl(heaterCtrl.Heater.VarList); this.groupBoxTwoStreamUnitOp.Controls.Add(heaterLabelsCtrl); heaterLabelsCtrl.Location = new Point(4, 12 + 20 + 2); ProcessVarValuesControl heaterValuesCtrl = new ProcessVarValuesControl(this.HeaterCtrl); this.groupBoxTwoStreamUnitOp.Controls.Add(heaterValuesCtrl); heaterValuesCtrl.Location = new Point(196, 12 + 20 + 2); }
public HeaterValuesControl(HeaterControl heaterCtrl) : this() { this.InitializeVariableTextBoxes(heaterCtrl); }
public void InitializeVariableTextBoxes(HeaterControl ctrl) { this.textBoxPressureDrop.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Heater.PressureDrop); this.textBoxHeatLoss.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Heater.HeatLoss); this.textBoxHeatInput.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Heater.HeatInput); }