Beispiel #1
0
        public ValveEditor(ValveControl valveCtrl) : base(valveCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            //InitializeComponent();

            Valve valve = this.ValveCtrl.Valve;

            this.Text = "Valve: " + valve.Name;
            //this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 60);
            //this.groupBoxTwoStreamUnitOp.Text = "Valve";

            //ValveLabelsControl valveLabelsCtrl = new ValveLabelsControl(valveCtrl.Valve);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(valveLabelsCtrl);
            //valveLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            //ValveValuesControl valveValuesCtrl = new ValveValuesControl(this.ValveCtrl);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(valveValuesCtrl);
            //valveValuesCtrl.Location = new Point(196, 12 + 20 + 2);
            initializeGrid(valveCtrl, columnIndex, false, "Valve");
        }
Beispiel #2
0
        public ValveEditor(ValveControl valveCtrl) : base(valveCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            Valve valve = this.ValveCtrl.Valve;

            this.Text = "Valve: " + valve.Name;
            this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 60);
            this.groupBoxTwoStreamUnitOp.Text = "Valve";

            ProcessVarLabelsControl valveLabelsCtrl = new ProcessVarLabelsControl(valveCtrl.Valve.VarList);

            this.groupBoxTwoStreamUnitOp.Controls.Add(valveLabelsCtrl);
            valveLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            ProcessVarValuesControl valveValuesCtrl = new ProcessVarValuesControl(this.ValveCtrl);

            this.groupBoxTwoStreamUnitOp.Controls.Add(valveValuesCtrl);
            valveValuesCtrl.Location = new Point(196, 12 + 20 + 2);
        }
Beispiel #3
0
 public void InitializeVariableTextBoxes(ValveControl ctrl)
 {
     this.textBoxPressureDrop.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Valve.PressureDrop);
 }
Beispiel #4
0
 public ValveValuesControl(ValveControl valveCtrl) : this()
 {
     this.InitializeVariableTextBoxes(valveCtrl);
 }