コード例 #1
0
        public FabricFilterEditor(FabricFilterControl fabricFilterCtrl) : base(fabricFilterCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.UpdateStreamsUI();

            this.groupBoxFabricFilter.Location = new System.Drawing.Point(644, 24);
            this.groupBoxFabricFilter.Size     = new System.Drawing.Size(280, 260);
            this.groupBoxFabricFilter.Controls.Clear();

            //BagFilterLabelsControl bagFilterLabelsCtrl = new BagFilterLabelsControl(bagFilterCtrl.BagFilter);
            ProcessVarLabelsControl fabricFilterLabelsCtrl = new ProcessVarLabelsControl(this.solvableCtrl.Solvable.VarList);

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

            //BagFilterValuesControl bagFilterValuesCtrl = new BagFilterValuesControl(this.BagFilterCtrl);
            ProcessVarValuesControl fabricFilterValuesCtrl = new ProcessVarValuesControl(this.solvableCtrl);

            this.groupBoxFabricFilter.Controls.Add(fabricFilterValuesCtrl);
            fabricFilterValuesCtrl.Location = new Point(196, 12 + 20 + 2);
        }
コード例 #2
0
 public void InitializeVariableTextBoxes(FabricFilterControl ctrl)
 {
     this.textBoxPressureDrop.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.GasPressureDrop);
     this.textBoxCollectionEfficiency.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.CollectionEfficiency);
     this.textBoxInletParticleLoading.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.InletParticleLoading);
     this.textBoxOutletParticleLoading.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.OutletParticleLoading);
     this.textBoxParticleCollectionRate.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.ParticleCollectionRate);
     this.textBoxMassFlowRateOfParticleLostToGasOutlet.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.MassFlowRateOfParticleLostToGasOutlet);
     this.textBoxGasToClothRatio.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.GasToClothRatio);
     this.textBoxTotalFilteringArea.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.FabricFilter.TotalFilteringArea);
 }
コード例 #3
0
        public FabricFilterEditor(FabricFilterControl fabricFilterCtrl) : base(fabricFilterCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            //InitializeComponent();

            //this.Text = "Fabric Filter: " + fabricFilterCtrl.FabricFilter.Name;
            //this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 200);
            //this.groupBoxTwoStreamUnitOp.Text = "Fabric Filter";

            //FabricFilterLabelsControl fabricFilterLabelsCtrl = new FabricFilterLabelsControl(fabricFilterCtrl.FabricFilter);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(fabricFilterLabelsCtrl);
            //fabricFilterLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            //FabricFilterValuesControl fabricFilterValuesCtrl = new FabricFilterValuesControl(this.FabricFilterCtrl);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(fabricFilterValuesCtrl);
            //fabricFilterValuesCtrl.Location = new Point(196, 12 + 20 + 2);
            //initializeGrid(fabricFilterCtrl, columnIndex, false, "Fabric Filter");
        }
コード例 #4
0
        public FabricFilterEditor(FabricFilterControl fabricFilterCtrl) : base(fabricFilterCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.Text = "Fabric Filter: " + fabricFilterCtrl.FabricFilter.Name;
            this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 200);
            this.groupBoxTwoStreamUnitOp.Text = "Fabric Filter";

            ProcessVarLabelsControl fabricFilterLabelsCtrl = new ProcessVarLabelsControl(fabricFilterCtrl.FabricFilter.VarList);

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

            ProcessVarValuesControl fabricFilterValuesCtrl = new ProcessVarValuesControl(this.FabricFilterCtrl);

            this.groupBoxTwoStreamUnitOp.Controls.Add(fabricFilterValuesCtrl);
            fabricFilterValuesCtrl.Location = new Point(196, 12 + 20 + 2);
        }
コード例 #5
0
 public FabricFilterValuesControl(FabricFilterControl fabricFilterCtrl) : this()
 {
     this.InitializeVariableTextBoxes(fabricFilterCtrl);
 }