public CoolerEditor(CoolerControl coolerCtrl) : base(coolerCtrl) { // // Required for Windows Form Designer support // //InitializeComponent(); Cooler cooler = this.CoolerCtrl.Cooler; this.Text = "Cooler: " + cooler.Name; //this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 100); //this.groupBoxTwoStreamUnitOp.Text = "Cooler"; //CoolerLabelsControl coolerLabelsCtrl = new CoolerLabelsControl(this.CoolerCtrl.Cooler); //this.groupBoxTwoStreamUnitOp.Controls.Add(coolerLabelsCtrl); //coolerLabelsCtrl.Location = new Point(4, 12 + 20 + 2); //CoolerValuesControl coolerValuesCtrl = new CoolerValuesControl(this.CoolerCtrl); //this.groupBoxTwoStreamUnitOp.Controls.Add(coolerValuesCtrl); //coolerValuesCtrl.Location = new Point(196, 12 + 20 + 2); initializeGrid(coolerCtrl, columnIndex, false, "Cooler"); }
public CoolerEditor(CoolerControl coolerCtrl) : base(coolerCtrl) { // // Required for Windows Form Designer support // InitializeComponent(); Cooler cooler = this.CoolerCtrl.Cooler; this.Text = "Cooler: " + cooler.Name; this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 100); this.groupBoxTwoStreamUnitOp.Text = "Cooler"; ProcessVarLabelsControl coolerLabelsCtrl = new ProcessVarLabelsControl(this.CoolerCtrl.Cooler.VarList); this.groupBoxTwoStreamUnitOp.Controls.Add(coolerLabelsCtrl); coolerLabelsCtrl.Location = new Point(4, 12 + 20 + 2); ProcessVarValuesControl coolerValuesCtrl = new ProcessVarValuesControl(this.CoolerCtrl); this.groupBoxTwoStreamUnitOp.Controls.Add(coolerValuesCtrl); coolerValuesCtrl.Location = new Point(196, 12 + 20 + 2); }
public CoolerValuesControl(CoolerControl coolerCtrl) : this() { this.InitializeVariableTextBoxes(coolerCtrl); }
public void InitializeVariableTextBoxes(CoolerControl ctrl) { this.textBoxPressureDrop.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Cooler.PressureDrop); this.textBoxHeatLoss.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Cooler.HeatLoss); this.textBoxHeatInput.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Cooler.HeatInput); }