Ejemplo n.º 1
0
        public ElectrostaticPrecipitatorEditor(ElectrostaticPrecipitatorControl electrostaticPrecipitatorCtrl) : base(electrostaticPrecipitatorCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.UpdateStreamsUI();

            ElectrostaticPrecipitator electrostaticPrecipitator = this.ElectrostaticPrecipitatorCtrl.ElectrostaticPrecipitator;

            this.Text = "Electrostatic Precipitator: " + electrostaticPrecipitator.Name;

            this.groupBoxUnitOpVars.Location = new System.Drawing.Point(644, 24);
            this.groupBoxUnitOpVars.Size     = new System.Drawing.Size(280, 260);
            this.groupBoxUnitOpVars.Controls.Clear();
            this.groupBoxUnitOpVars.Text = "Electrostatic Precipitator";

            ProcessVarLabelsControl electrostaticPrecipitatorLabelsCtrl = new ProcessVarLabelsControl(this.solvableCtrl.Solvable.VarList);

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

            ProcessVarValuesControl electrostaticPrecipitatorValuesCtrl = new ProcessVarValuesControl(this.solvableCtrl);

            this.groupBoxUnitOpVars.Controls.Add(electrostaticPrecipitatorValuesCtrl);
            electrostaticPrecipitatorValuesCtrl.Location = new Point(196, 12 + 20 + 2);
        }
Ejemplo n.º 2
0
 public void InitializeVariableTextBoxes(ElectrostaticPrecipitatorControl ctrl)
 {
     this.textBoxPressureDrop.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.GasPressureDrop);
     this.textBoxInletParticleLoading.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.InletParticleLoading);
     this.textBoxOutletParticleLoading.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.OutletParticleLoading);
     this.textBoxParticleCollectionRate.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.ParticleCollectionRate);
     this.textBoxCollectionEfficiency.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.CollectionEfficiency);
     this.textBoxDriftVelocity.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.DriftVelocity);
     this.textBoxTotalSurfaceArea.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.TotalSurfaceArea);
     this.textBoxMassFlowRateOfParticleLostToGasOutlet.InitializeVariable(ctrl.Flowsheet, ctrl.ElectrostaticPrecipitator.MassFlowRateOfParticleLostToGasOutlet);
 }
Ejemplo n.º 3
0
        public ElectrostaticPrecipitatorEditor(ElectrostaticPrecipitatorControl electrostaticPrecipitatorCtrl) : base(electrostaticPrecipitatorCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            //InitializeComponent();

            ElectrostaticPrecipitator electrostaticPrecipitator = this.ElectrostaticPrecipitatorCtrl.ElectrostaticPrecipitator;

            this.Text = "Electrostatic Precipitator: " + electrostaticPrecipitator.Name;
            //this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 200);
            //this.groupBoxTwoStreamUnitOp.Text = "Electrostatic Precipitator";

            //ElectrostaticPrecipitatorLabelsControl electrostaticPrecipitatorLabelsCtrl = new ElectrostaticPrecipitatorLabelsControl(this.ElectrostaticPrecipitatorCtrl.ElectrostaticPrecipitator);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(electrostaticPrecipitatorLabelsCtrl);
            //electrostaticPrecipitatorLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            //ElectrostaticPrecipitatorValuesControl electrostaticPrecipitatorValuesCtrl = new ElectrostaticPrecipitatorValuesControl(this.ElectrostaticPrecipitatorCtrl);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(electrostaticPrecipitatorValuesCtrl);
            //electrostaticPrecipitatorValuesCtrl.Location = new Point(196, 12 + 20 + 2);
            initializeGrid(electrostaticPrecipitatorCtrl, columnIndex, false, "Electrostatic Precipitator");
        }
Ejemplo n.º 4
0
 public ElectrostaticPrecipitatorValuesControl(ElectrostaticPrecipitatorControl electrostaticPrecipitatorCtrl) : this()
 {
     this.InitializeVariableTextBoxes(electrostaticPrecipitatorCtrl);
 }