Exemplo n.º 1
0
 public void InitializeVariableTextBoxes(FanControl ctrl)
 {
     this.textBoxStaticPressure.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.StaticPressure);
     this.textBoxEfficiency.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.Efficiency);
     this.textBoxTotalDischargePressure.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.TotalDischargePressure);
     this.textBoxPowerInput.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.PowerInput);
 }
Exemplo n.º 2
0
        public FanEditor(FanControl fanCtrl) : base(fanCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            //InitializeComponent();

            int rowCount = 0;

            this.inConstruction = true;

            this.fan  = this.FanCtrl.Fan;
            this.Text = "Fan: " + fan.Name;
            rowCount  = initializeGrid(fanCtrl, columnIndex, false, "Fan");
            //this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 280);
            //this.groupBoxTwoStreamUnitOp.Text = "Fan";

            //FanLabelsControl fanLabelsCtrl = new FanLabelsControl(fanCtrl.Fan);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(fanLabelsCtrl);
            //fanLabelsCtrl.Location = new Point(4, 12 + 20 + 2);

            //FanValuesControl fanValuesCtrl = new FanValuesControl(this.FanCtrl);
            //this.groupBoxTwoStreamUnitOp.Controls.Add(fanValuesCtrl);
            //fanValuesCtrl.Location = new Point(196, 12 + 20 + 2);

            //
            this.checkBoxIncludeDimensions          = new CheckBox();
            this.checkBoxIncludeDimensions.Location = new System.Drawing.Point(4, 118);
            this.checkBoxIncludeDimensions.Name     = "checkBoxIncludeDimensions";
            this.checkBoxIncludeDimensions.Text     = "Include Outlet Velocity Effect";
            //this.groupBoxTwoStreamUnitOp.Controls.Add(this.checkBoxIncludeDimensions);
            this.checkBoxIncludeDimensions.Checked         = this.FanCtrl.Fan.IncludeOutletVelocityEffect;
            this.checkBoxIncludeDimensions.CheckedChanged += new EventHandler(checkBoxIncludeDimensions_CheckedChanged);
            this.checkBoxIncludeDimensions.Size            = new Size(192, 20);
            this.tableLayoutPanel.SetColumnSpan(this.checkBoxIncludeDimensions, 2);
            this.tableLayoutPanel.Controls.Add(this.checkBoxIncludeDimensions, columnIndex, rowCount++);

            //this.checkBoxIncludeDimensions
            this.fanDimensionsCtrl          = new FanDimensionsControl(this.FanCtrl);
            this.fanDimensionsCtrl.Location = new Point(4, 150);
            this.groupBoxTwoStreamUnitOp.Controls.Add(this.fanDimensionsCtrl);
            this.tableLayoutPanel.SetColumnSpan(this.fanDimensionsCtrl, 2);
            this.tableLayoutPanel.SetRowSpan(this.fanDimensionsCtrl, 4);
            this.tableLayoutPanel.Controls.Add(this.fanDimensionsCtrl, columnIndex, rowCount++);

            this.UpdateTheUI();

            this.inConstruction = false;
        }
Exemplo n.º 3
0
        public FanEditor(FanControl fanCtrl) : base(fanCtrl)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.inConstruction = true;

            this.fan  = this.FanCtrl.Fan;
            this.Text = "Fan: " + fan.Name;

            this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 280);
            this.groupBoxTwoStreamUnitOp.Text = "Fan";

            //ProcessVarLabelsControl fanLabelsCtrl = new ProcessVarLabelsControl(fanCtrl.Fan.VarList);
            FanLabelsControl fanLabelsCtrl = new FanLabelsControl(fanCtrl.Fan);

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

            //ProcessVarValuesControl fanValuesCtrl = new ProcessVarValuesControl(this.FanCtrl);
            FanValuesControl fanValuesCtrl = new FanValuesControl(this.FanCtrl);

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

            //
            this.checkBoxIncludeDimensions          = new CheckBox();
            this.checkBoxIncludeDimensions.Location = new System.Drawing.Point(4, 118);
            this.checkBoxIncludeDimensions.Name     = "checkBoxIncludeDimensions";
            this.checkBoxIncludeDimensions.Text     = "Include Outlet Velocity Effect";
            this.groupBoxTwoStreamUnitOp.Controls.Add(this.checkBoxIncludeDimensions);
            this.checkBoxIncludeDimensions.Checked         = this.FanCtrl.Fan.IncludeOutletVelocityEffect;
            this.checkBoxIncludeDimensions.CheckedChanged += new EventHandler(checkBoxIncludeDimensions_CheckedChanged);
            this.checkBoxIncludeDimensions.Size            = new Size(192, 20);

            this.fanDimensionsCtrl          = new FanDimensionsControl(this.FanCtrl);
            this.fanDimensionsCtrl.Location = new Point(4, 150);
            this.groupBoxTwoStreamUnitOp.Controls.Add(this.fanDimensionsCtrl);

            this.UpdateTheUI();

            this.inConstruction = false;
        }
Exemplo n.º 4
0
        public FanDimensionsControl(FanControl fanCtrl)
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            this.inConstruction = true;
            this.fan            = fanCtrl.Fan;

            this.SetCrossSectionType(fan.OutletCrossSectionType);

            this.fanCircularLabelsControl.InitializeVariableLabels(fanCtrl.Fan);
            this.fanCircularValuesControl.InitializeVariableTextBoxes(fanCtrl);
            this.fanRectangularLabelsControl.InitializeVariableLabels(fanCtrl.Fan);
            this.fanRectangularValuesControl.InitializeVariableTextBoxes(fanCtrl);

            this.InitializeVariableLabels(fanCtrl.Fan);
            this.InitializeVariableTextBoxes(fanCtrl);

            this.fan.SolveComplete += new SolveCompleteEventHandler(fan_SolveComplete);
            this.inConstruction     = false;
        }
Exemplo n.º 5
0
 public void InitializeVariableTextBoxes(FanControl ctrl)
 {
     this.textBoxOutletVelocity.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.OutletVelocity);
 }
Exemplo n.º 6
0
 public FanRectangularValuesControl(FanControl fanCtrl) : this()
 {
     this.InitializeVariableTextBoxes(fanCtrl);
 }
Exemplo n.º 7
0
 public void InitializeVariableTextBoxes(FanControl ctrl)
 {
     this.textBoxOutletWidth.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.OutletWidth);
     this.textBoxOutletHeight.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.OutletHeight);
     this.textBoxOutletHeightWidthRatio.InitializeVariable(ctrl.Flowsheet.ApplicationPrefs, ctrl.Fan.OutletHeightWidthRatio);
 }
Exemplo n.º 8
0
 public void InitializeVariableTextBoxes(FanControl ctrl)
 {
     this.textBoxOutletDiameter.InitializeVariable(ctrl.Flowsheet, ctrl.Fan.OutletDiameter);
 }