Beispiel #1
0
        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");
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public CoolerValuesControl(CoolerControl coolerCtrl) : this()
 {
     this.InitializeVariableTextBoxes(coolerCtrl);
 }
Beispiel #4
0
 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);
 }