Пример #1
0
        public BagFilterEditor(BagFilterControl bagFilterCtrl) : base(bagFilterCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.Text = "Bag Filter: " + bagFilterCtrl.BagFilter.Name;

            this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 260);
            this.groupBoxTwoStreamUnitOp.Controls.Clear();
            this.groupBoxTwoStreamUnitOp.Text = "Bag Filter";

            //BagFilterLabelsControl bagFilterLabelsCtrl = new BagFilterLabelsControl(bagFilterCtrl.BagFilter);
            ProcessVarLabelsControl bagFilterLabelsCtrl = new ProcessVarLabelsControl(bagFilterCtrl.BagFilter.VarList);

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

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

            this.groupBoxTwoStreamUnitOp.Controls.Add(bagFilterValuesCtrl);
            bagFilterValuesCtrl.Location = new Point(196, 12 + 20 + 2);
        }
Пример #2
0
        public BagFilterEditor(BagFilterControl bagFilterCtrl) : base(bagFilterCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.UpdateStreamsUI();

            this.Text = "Bag Filter: " + UnitOpCtrl.UnitOperation.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 = "Bag Filter";

            ProcessVarLabelsControl bagFilterLabelsCtrl = new ProcessVarLabelsControl(solvableCtrl.Solvable.VarList);

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

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

            this.groupBoxUnitOpVars.Controls.Add(bagFilterValuesCtrl);
            bagFilterValuesCtrl.Location = new Point(196, 12 + 20 + 2);
        }
Пример #3
0
 public BagFilterValuesControl(BagFilterControl bagFilterCtrl) : base(bagFilterCtrl)
 {
     InitializeComponent();
     this.InitializeVariableTextBoxes(bagFilterCtrl);
 }
Пример #4
0
 public void InitializeVariableTextBoxes(BagFilterControl ctrl)
 {
     this.textBoxBagDiameter.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.BagFilter.BagDiameter);
     this.textBoxBagLength.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.BagFilter.BagLength);
     this.textBoxNumberOfBags.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.BagFilter.NumberOfBags);
 }