示例#1
0
        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");
        }
示例#2
0
        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);
        }
示例#3
0
 public HeaterValuesControl(HeaterControl heaterCtrl) : this()
 {
     this.InitializeVariableTextBoxes(heaterCtrl);
 }
示例#4
0
 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);
 }