Пример #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);
 }