public TeeEditor(TeeControl teeCtrl) : base(teeCtrl) { // // Required for Windows Form Designer support // InitializeComponent(); this.Size = new Size(296, this.formHeight); this.FormBorderStyle = FormBorderStyle.Sizable; this.Text = "Tee"; this.panel.AutoScroll = true; Tee tee = this.TeeCtrl.Tee; this.Text = "Tee: " + tee.Name; this.userCtrlFractions = new UserControl(); this.userCtrlFractions.AutoScroll = true; this.userCtrlFractions.Size = new Size(242, this.groupBoxHeight - 40); this.userCtrlFractions.Location = new Point(4, 12 + 20 + 2); this.groupBoxStreams = new GroupBox(); this.groupBoxStreams.Text = "Inlet/Outlets"; this.groupBoxStreams.Location = new System.Drawing.Point(4, 24); this.groupBoxStreams.Size = new System.Drawing.Size(280, this.groupBoxHeight); this.panel.Controls.Add(this.groupBoxStreams); this.groupBoxFractions = new GroupBox(); this.groupBoxFractions.Text = "Outlet Fractions"; this.groupBoxFractions.Location = new System.Drawing.Point(this.groupBoxStreams.Width + 4, 24); this.groupBoxFractions.Size = new System.Drawing.Size(250, this.groupBoxHeight); this.groupBoxFractions.Controls.Add(this.userCtrlFractions); this.panel.Controls.Add(this.groupBoxFractions); textBoxStreamInName = new ProsimoUI.SolvableNameTextBox(); this.outletControls = new Hashtable(); if (tee.Inlet is DryingGasStream) { this.formHeight = 368; this.groupBoxHeight = 280; this.ClientSize = new System.Drawing.Size(292, 253); } else if (tee.Inlet is DryingMaterialStream) { this.formHeight = 388; this.groupBoxHeight = 300; this.ClientSize = new System.Drawing.Size(292, 273); } this.groupBoxStreams.Size = new System.Drawing.Size(360, this.groupBoxHeight); this.groupBoxFractions.Location = new System.Drawing.Point(this.groupBoxStreams.Width + 4, 24); this.groupBoxFractions.Size = new System.Drawing.Size(250, this.groupBoxHeight); this.UpdateTheUI(); teeCtrl.Tee.StreamAttached += new StreamAttachedEventHandler(Tee_StreamAttached); teeCtrl.Tee.StreamDetached += new StreamDetachedEventHandler(Tee_StreamDetached); }
public MixerEditor(MixerControl mixerCtrl) : base(mixerCtrl) { // // Required for Windows Form Designer support // InitializeComponent(); this.Size = new Size(296, this.formHeight); this.FormBorderStyle = FormBorderStyle.Sizable; this.Text = "Mixer"; this.panel.AutoScroll = true; Mixer mixer = this.MixerCtrl.Mixer; this.Text = "Mixer: " + mixer.Name; this.groupBox = new GroupBox(); this.groupBox.Text = "Inlets/Outlet"; this.groupBox.Location = new System.Drawing.Point(4, 24); this.groupBox.Size = new System.Drawing.Size(280, this.groupBoxHeight); this.panel.Controls.Add(this.groupBox); this.textBoxStreamOutName = new ProsimoUI.SolvableNameTextBox(); this.inletControls = new Hashtable(); if (mixer.Outlet is DryingGasStream) { this.formHeight = 368; this.groupBoxHeight = 280; this.ClientSize = new System.Drawing.Size(292, 253); } else if (mixer.Outlet is DryingMaterialStream) { this.formHeight = 388; this.groupBoxHeight = 300; this.ClientSize = new System.Drawing.Size(292, 273); } this.groupBox.Size = new System.Drawing.Size(360, this.groupBoxHeight); this.UpdateUI(); mixerCtrl.Mixer.StreamAttached += new StreamAttachedEventHandler(Mixer_StreamAttached); mixerCtrl.Mixer.StreamDetached += new StreamDetachedEventHandler(Mixer_StreamDetached); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBoxMotiveSuction = new System.Windows.Forms.GroupBox(); this.textBoxSuctionInName = new ProsimoUI.SolvableNameTextBox(); this.textBoxMotiveInName = new ProsimoUI.SolvableNameTextBox(); this.textBoxDischargeOutName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxMotiveSuction.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.panel.SuspendLayout(); this.SuspendLayout(); // // groupBoxMotiveSuction // this.groupBoxMotiveSuction.Controls.Add(this.textBoxSuctionInName); this.groupBoxMotiveSuction.Controls.Add(this.textBoxMotiveInName); this.groupBoxMotiveSuction.Location = new System.Drawing.Point(4, 24); this.groupBoxMotiveSuction.Name = "groupBoxMotiveSuction"; this.groupBoxMotiveSuction.Size = new System.Drawing.Size(440, 300); this.groupBoxMotiveSuction.TabIndex = 118; this.groupBoxMotiveSuction.TabStop = false; this.groupBoxMotiveSuction.Text = "Motive/Suction Inlets, Discharge Outlet"; // // textBoxSuctionInName // this.textBoxSuctionInName.Location = new System.Drawing.Point(276, 12); this.textBoxSuctionInName.Name = "textBoxSuctionInName"; this.textBoxSuctionInName.Size = new System.Drawing.Size(80, 20); this.textBoxSuctionInName.TabIndex = 7; this.textBoxSuctionInName.Text = ""; // // textBoxMotiveInName // this.textBoxMotiveInName.Location = new System.Drawing.Point(196, 12); this.textBoxMotiveInName.Name = "textBoxMotiveInName"; this.textBoxMotiveInName.Size = new System.Drawing.Size(80, 20); this.textBoxMotiveInName.TabIndex = 6; this.textBoxMotiveInName.Text = ""; // // panel // this.panel.Controls.Add(this.groupBoxMotiveSuction); this.panel.Size = new System.Drawing.Size(930, 329); // // textBoxDischargeOutName // this.textBoxDischargeOutName.Location = new System.Drawing.Point(356, 12); this.textBoxDischargeOutName.Name = "textBoxDischargeOutName"; this.textBoxDischargeOutName.Size = new System.Drawing.Size(80, 20); this.textBoxDischargeOutName.TabIndex = 6; this.textBoxDischargeOutName.Text = ""; // // EjectorEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(5F, 13F); this.ClientSize = new System.Drawing.Size(738, 351); this.Name = "EjectorEditor"; this.Text = "Ejector"; this.groupBoxMotiveSuction.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.panel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBoxGasInletOutlet = new System.Windows.Forms.GroupBox(); this.textBoxGasOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxGasInName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxWaterInletOutlet = new System.Windows.Forms.GroupBox(); this.textBoxWaterOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxWaterInName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxLiquidOutlet = new System.Windows.Forms.GroupBox(); this.textBoxLiquidOutName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxGasInletOutlet.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.groupBoxWaterInletOutlet.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.panel.SuspendLayout(); this.groupBoxLiquidOutlet.SuspendLayout(); this.SuspendLayout(); // // groupBoxGasInletOutlet // this.groupBoxGasInletOutlet.Controls.Add(this.textBoxGasOutName); this.groupBoxGasInletOutlet.Controls.Add(this.textBoxGasInName); this.groupBoxGasInletOutlet.Location = new System.Drawing.Point(4, 24); this.groupBoxGasInletOutlet.Name = "groupBoxGasInletOutlet"; this.groupBoxGasInletOutlet.Size = new System.Drawing.Size(360, 280); this.groupBoxGasInletOutlet.TabIndex = 118; this.groupBoxGasInletOutlet.TabStop = false; this.groupBoxGasInletOutlet.Text = "Gas Inlet/Outlet"; // // textBoxGasOutName // this.textBoxGasOutName.Location = new System.Drawing.Point(276, 12); this.textBoxGasOutName.Name = "textBoxGasOutName"; this.textBoxGasOutName.Size = new System.Drawing.Size(80, 20); this.textBoxGasOutName.TabIndex = 7; this.textBoxGasOutName.Text = ""; // // textBoxGasInName // this.textBoxGasInName.Location = new System.Drawing.Point(196, 12); this.textBoxGasInName.Name = "textBoxGasInName"; this.textBoxGasInName.Size = new System.Drawing.Size(80, 20); this.textBoxGasInName.TabIndex = 6; this.textBoxGasInName.Text = ""; // // groupBoxWaterInletOutlet // this.groupBoxWaterInletOutlet.Controls.Add(this.textBoxWaterOutName); this.groupBoxWaterInletOutlet.Controls.Add(this.textBoxWaterInName); this.groupBoxWaterInletOutlet.Location = new System.Drawing.Point(930, 24); this.groupBoxWaterInletOutlet.Name = "groupBoxWaterInletOutlet"; this.groupBoxWaterInletOutlet.Size = new System.Drawing.Size(360, 3000); this.groupBoxWaterInletOutlet.TabIndex = 118; this.groupBoxWaterInletOutlet.TabStop = false; this.groupBoxWaterInletOutlet.Text = "Water Inlet/Outlet"; // // textBoxWaterOutName // this.textBoxWaterOutName.Location = new System.Drawing.Point(276, 12); this.textBoxWaterOutName.Name = "textBoxWaterOutName"; this.textBoxWaterOutName.Size = new System.Drawing.Size(80, 20); this.textBoxWaterOutName.TabIndex = 7; this.textBoxWaterOutName.Text = ""; // // textBoxWaterInName // this.textBoxWaterInName.Location = new System.Drawing.Point(196, 12); this.textBoxWaterInName.Name = "textBoxGasInName"; this.textBoxWaterInName.Size = new System.Drawing.Size(80, 20); this.textBoxWaterInName.TabIndex = 6; this.textBoxWaterInName.Text = ""; // // panel // this.panel.Controls.Add(this.groupBoxLiquidOutlet); this.panel.Controls.Add(this.groupBoxGasInletOutlet); this.panel.Controls.Add(this.groupBoxWaterInletOutlet); //this.panel.Size = new System.Drawing.Size(930, 329); // // groupBoxLiquidOutlet // this.groupBoxLiquidOutlet.Controls.Add(this.textBoxLiquidOutName); //this.groupBoxLiquidOutlet.Location = new System.Drawing.Point(724, 24); this.groupBoxLiquidOutlet.Location = new System.Drawing.Point(364, 24); this.groupBoxLiquidOutlet.Name = "groupBoxLiquidOutlet"; this.groupBoxLiquidOutlet.Size = new System.Drawing.Size(280, 300); this.groupBoxLiquidOutlet.TabIndex = 128; this.groupBoxLiquidOutlet.TabStop = false; this.groupBoxLiquidOutlet.Text = "Liquid Outlet"; // // textBoxLiquidOutName // this.textBoxLiquidOutName.Location = new System.Drawing.Point(196, 12); this.textBoxLiquidOutName.Name = "textBoxLiquidOutName"; this.textBoxLiquidOutName.Size = new System.Drawing.Size(80, 20); this.textBoxLiquidOutName.TabIndex = 6; this.textBoxLiquidOutName.Text = ""; // // ScrubberCondenserEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(5F, 13F); this.ClientSize = new System.Drawing.Size(930, 351); this.Name = "ScrubberCondenserEditor"; this.Text = "Scrubber Condenser"; this.groupBoxGasInletOutlet.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.groupBoxWaterInletOutlet.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.panel.ResumeLayout(false); this.groupBoxLiquidOutlet.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBoxMixtureFluid = new System.Windows.Forms.GroupBox(); this.textBoxGasOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxGasInName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxParticle = new System.Windows.Forms.GroupBox(); this.textBoxParticleOutName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxMixtureFluid.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.panel.SuspendLayout(); this.groupBoxParticle.SuspendLayout(); this.SuspendLayout(); // // groupBoxMixtureFluid // this.groupBoxMixtureFluid.Controls.Add(this.textBoxGasOutName); this.groupBoxMixtureFluid.Controls.Add(this.textBoxGasInName); this.groupBoxMixtureFluid.Location = new System.Drawing.Point(4, 24); this.groupBoxMixtureFluid.Name = "groupBoxMixtureFluid"; this.groupBoxMixtureFluid.Size = new System.Drawing.Size(360, 280); this.groupBoxMixtureFluid.TabIndex = 118; this.groupBoxMixtureFluid.TabStop = false; this.groupBoxMixtureFluid.Text = "Gas Inlet/Outlet"; // // textBoxGasOutName // this.textBoxGasOutName.Location = new System.Drawing.Point(276, 12); this.textBoxGasOutName.Name = "textBoxGasOutName"; this.textBoxGasOutName.Size = new System.Drawing.Size(80, 20); this.textBoxGasOutName.TabIndex = 7; this.textBoxGasOutName.Text = ""; // // textBoxGasInName // this.textBoxGasInName.Location = new System.Drawing.Point(196, 12); this.textBoxGasInName.Name = "textBoxGasInName"; this.textBoxGasInName.Size = new System.Drawing.Size(80, 20); this.textBoxGasInName.TabIndex = 6; this.textBoxGasInName.Text = ""; // // panel // this.panel.Controls.Add(this.groupBoxParticle); this.panel.Controls.Add(this.groupBoxMixtureFluid); this.panel.Size = new System.Drawing.Size(930, 329); // // groupBoxParticle // this.groupBoxParticle.Controls.Add(this.textBoxParticleOutName); this.groupBoxParticle.Location = new System.Drawing.Point(364, 24); this.groupBoxParticle.Name = "groupBoxParticle"; this.groupBoxParticle.Size = new System.Drawing.Size(280, 300); this.groupBoxParticle.TabIndex = 128; this.groupBoxParticle.TabStop = false; this.groupBoxParticle.Text = "Particle Outlet"; // // textBoxParticleOutName // this.textBoxParticleOutName.Location = new System.Drawing.Point(196, 12); this.textBoxParticleOutName.Name = "textBoxParticleOutName"; this.textBoxParticleOutName.Size = new System.Drawing.Size(80, 20); this.textBoxParticleOutName.TabIndex = 6; this.textBoxParticleOutName.Text = ""; // // CycloneEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(5F, 13F); this.ClientSize = new System.Drawing.Size(930, 351); this.Name = "CycloneEditor"; this.Text = "Cyclone"; this.groupBoxMixtureFluid.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.panel.ResumeLayout(false); this.groupBoxParticle.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBoxFuelInlet = new System.Windows.Forms.GroupBox(); this.textBoxFuelInName = new ProsimoUI.SolvableNameTextBox(); this.textBoxFlueGasOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxAirInName = new ProsimoUI.SolvableNameTextBox(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.groupBoxFuelInlet.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.panel.SuspendLayout(); this.SuspendLayout(); // // groupBoxFuelInlet // this.groupBoxFuelInlet.Controls.Add(this.textBoxFuelInName); this.groupBoxFuelInlet.Location = new System.Drawing.Point(4, 24); this.groupBoxFuelInlet.Name = "groupBoxFuelInlet"; this.groupBoxFuelInlet.Size = new System.Drawing.Size(280, 280); this.groupBoxFuelInlet.TabIndex = 118; this.groupBoxFuelInlet.TabStop = false; this.groupBoxFuelInlet.Text = "Fuel Inlet"; // textBoxAirInName // this.groupBoxAirInlet = new System.Windows.Forms.GroupBox(); this.groupBoxAirInlet.Controls.Add(this.textBoxAirInName); this.groupBoxAirInlet.Controls.Add(this.textBoxFlueGasOutName); this.groupBoxAirInlet.Location = new System.Drawing.Point(284, 24); this.groupBoxAirInlet.Name = "groupBoxAirInlet"; this.groupBoxAirInlet.Size = new System.Drawing.Size(360, 280); this.groupBoxAirInlet.TabIndex = 118; this.groupBoxAirInlet.TabStop = false; this.groupBoxAirInlet.Text = "Air Inlet/Flue Gas Outlet"; this.textBoxAirInName.Location = new System.Drawing.Point(196, 12); this.textBoxAirInName.Name = "textBoxAirInName"; this.textBoxAirInName.Size = new System.Drawing.Size(80, 20); this.textBoxAirInName.TabIndex = 6; this.textBoxAirInName.Text = ""; // // textBoxWaterOutName // this.textBoxFlueGasOutName.Location = new System.Drawing.Point(276, 12); this.textBoxFlueGasOutName.Name = "textBoxFlueGasOutName"; this.textBoxFlueGasOutName.Size = new System.Drawing.Size(80, 20); this.textBoxFlueGasOutName.TabIndex = 7; this.textBoxFlueGasOutName.Text = ""; this.textBoxFuelInName.Location = new System.Drawing.Point(196, 12); this.textBoxFuelInName.Name = "textBoxFuelInletName"; this.textBoxFuelInName.Size = new System.Drawing.Size(80, 20); this.textBoxFuelInName.TabIndex = 8; this.textBoxFuelInName.Text = ""; // // panel // this.panel.Controls.Add(this.groupBoxFuelInlet); this.panel.Controls.Add(this.groupBoxAirInlet); this.panel.Size = new System.Drawing.Size(930, 329); // // FiredHeaterEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(5F, 13F); //this.ClientSize = new System.Drawing.Size(930, 351); this.Name = "CombustorEditor"; this.Text = this.solvableCtrl.SolvableTypeName; this.groupBoxAirInlet.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.panel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBoxStreams = new System.Windows.Forms.GroupBox(); this.textBoxLiquidOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxVaporOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxInName = new ProsimoUI.SolvableNameTextBox(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.panel.SuspendLayout(); this.groupBoxStreams.SuspendLayout(); this.SuspendLayout(); // // groupBoxStreams // this.groupBoxStreams.Controls.Add(this.textBoxLiquidOutName); this.groupBoxStreams.Controls.Add(this.textBoxVaporOutName); this.groupBoxStreams.Controls.Add(this.textBoxInName); this.groupBoxStreams.Location = new System.Drawing.Point(4, 24); this.groupBoxStreams.Name = "groupBoxStreams"; this.groupBoxStreams.Size = new System.Drawing.Size(440, 300); this.groupBoxStreams.TabIndex = 118; this.groupBoxStreams.TabStop = false; this.groupBoxStreams.Text = "Inlet/Vapor Outlet/Liquid Outlet"; // // textBoxLiquidOutName // this.textBoxLiquidOutName.Location = new System.Drawing.Point(356, 12); this.textBoxLiquidOutName.Name = "textBoxLiquidOutName"; this.textBoxLiquidOutName.Size = new System.Drawing.Size(80, 20); this.textBoxLiquidOutName.TabIndex = 6; this.textBoxLiquidOutName.Text = ""; // // textBoxVaporOutName // this.textBoxVaporOutName.Location = new System.Drawing.Point(276, 12); this.textBoxVaporOutName.Name = "textBoxVaporOutName"; this.textBoxVaporOutName.Size = new System.Drawing.Size(80, 20); this.textBoxVaporOutName.TabIndex = 7; this.textBoxVaporOutName.Text = ""; // // textBoxInName // this.textBoxInName.Location = new System.Drawing.Point(196, 12); this.textBoxInName.Name = "textBoxInName"; this.textBoxInName.Size = new System.Drawing.Size(80, 20); this.textBoxInName.TabIndex = 6; this.textBoxInName.Text = ""; // // panel // this.panel.Controls.Add(this.groupBoxStreams); this.panel.Size = new System.Drawing.Size(448, 289); // // FlashTankEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(5F, 13F); this.ClientSize = new System.Drawing.Size(448, 351); this.Name = "FlashTankEditor"; this.Text = "FlashTank"; this.groupBoxStreams.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.panel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.groupBoxStreams = new System.Windows.Forms.GroupBox(); this.textBoxStreamOutName = new ProsimoUI.SolvableNameTextBox(); this.textBoxStreamInName = new ProsimoUI.SolvableNameTextBox(); this.groupBoxTwoStreamUnitOp = new System.Windows.Forms.GroupBox(); this.groupBoxStreams.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.panel.SuspendLayout(); this.SuspendLayout(); // // groupBoxStreams // this.groupBoxStreams.Controls.Add(this.textBoxStreamOutName); this.groupBoxStreams.Controls.Add(this.textBoxStreamInName); this.groupBoxStreams.Location = new System.Drawing.Point(4, 24); this.groupBoxStreams.Name = "groupBoxStreams"; this.groupBoxStreams.Size = new System.Drawing.Size(360, 280); this.groupBoxStreams.TabIndex = 118; this.groupBoxStreams.TabStop = false; this.groupBoxStreams.Text = "Inlet/Outlet"; // // textBoxStreamOutName // this.textBoxStreamOutName.Location = new System.Drawing.Point(276, 12); this.textBoxStreamOutName.Name = "textBoxStreamOutName"; this.textBoxStreamOutName.Size = new System.Drawing.Size(80, 20); this.textBoxStreamOutName.TabIndex = 7; this.textBoxStreamOutName.Text = ""; // // textBoxStreamInName // this.textBoxStreamInName.Location = new System.Drawing.Point(196, 12); this.textBoxStreamInName.Name = "textBoxStreamInName"; this.textBoxStreamInName.Size = new System.Drawing.Size(80, 20); this.textBoxStreamInName.TabIndex = 6; this.textBoxStreamInName.Text = ""; // // groupBoxTwoStreamUnitOp // this.groupBoxTwoStreamUnitOp.Location = new System.Drawing.Point(364, 24); this.groupBoxTwoStreamUnitOp.Name = "groupBoxTwoStreamUnitOp"; this.groupBoxTwoStreamUnitOp.Size = new System.Drawing.Size(280, 280); this.groupBoxTwoStreamUnitOp.TabIndex = 127; this.groupBoxTwoStreamUnitOp.TabStop = false; // // panel // this.panel.Controls.Add(this.groupBoxTwoStreamUnitOp); this.panel.Controls.Add(this.groupBoxStreams); this.panel.Size = new System.Drawing.Size(650, 309); // // TwoStreamUnitOpEditor // this.AutoScaleDimensions = new System.Drawing.SizeF(5F, 13F); this.ClientSize = new System.Drawing.Size(650, 331); this.Name = "TwoStreamUnitOpEditor"; this.Text = "TwoStreamUnitOp"; this.groupBoxStreams.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.panel.ResumeLayout(false); this.ResumeLayout(false); }
private void UpdateTheUI() { this.panel.Visible = false; this.userCtrlFractions.Visible = false; this.userCtrlFractions.Controls.Clear(); this.groupBoxStreams.Visible = false; this.groupBoxStreams.Controls.Clear(); this.outletControls.Clear(); int x = INITIAL_LOCATION; int w = VALUE_WIDTH; int s = INITIAL_GROUPBOX_WIDTH; int p = INITIAL_FORM_WIDTH; Tee tee = this.TeeCtrl.Tee; bool hasStreamIn = false; bool hasStreamOut = false; ProcessStreamBase streamOut = null; if (tee.OutletStreams.Count > 0) { hasStreamOut = true; streamOut = (ProcessStreamBase)tee.OutletStreams[0]; this.userCtrlFractions.Visible = true; } ProcessStreamBase streamIn = tee.Inlet; hasStreamIn = streamIn != null; if (hasStreamIn || hasStreamOut) { this.groupBoxStreams.Visible = true; ProcessStreamBase labelsStream = hasStreamIn ? streamIn : streamOut; UserControl ctrl = null; if (labelsStream is DryingGasStream) { ctrl = new GasStreamLabelsControl((DryingGasStream)labelsStream); } else if (labelsStream is DryingMaterialStream) { ctrl = new MaterialStreamLabelsControl((DryingMaterialStream)labelsStream); } //UserControl ctrl = new ProcessVarLabelsControl(labelsStream.VarList); ; ctrl.Location = new Point(4, 12 + 20 + 2); this.groupBoxStreams.Size = new Size(s, this.groupBoxHeight); this.groupBoxFractions.Location = new System.Drawing.Point(this.groupBoxStreams.Width + 4, 24); this.groupBoxStreams.Controls.Add(ctrl); s = s + w; p = p + w; } if (hasStreamIn) { UserControl ctrl = null; if (streamIn is DryingGasStream) { GasStreamControl gasInCtrl = (GasStreamControl)this.TeeCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(streamIn.Name); ctrl = new GasStreamValuesControl(gasInCtrl); } else if (streamIn is DryingMaterialStream) { MaterialStreamControl materialInCtrl = (MaterialStreamControl)this.TeeCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(streamIn.Name); ctrl = new MaterialStreamValuesControl(materialInCtrl); } //ProcessStreamBaseControl baseCtrl = this.TeeCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(streamIn.Name); //UserControl ctrl = new ProcessVarValuesControl(baseCtrl); ctrl.Location = new Point(x, 12 + 20 + 2); this.groupBoxStreams.Size = new Size(s, this.groupBoxHeight); this.groupBoxFractions.Location = new System.Drawing.Point(this.groupBoxStreams.Width + 4, 24); this.groupBoxStreams.Controls.Add(ctrl); this.Size = new Size(p, this.formHeight); this.textBoxStreamInName.Text = streamIn.Name; this.textBoxStreamInName.Location = new Point(x, 12); this.textBoxStreamInName.SetSolvable(streamIn); this.groupBoxStreams.Controls.Add(this.textBoxStreamInName); UI.SetStatusColor(this.textBoxStreamInName, streamIn.SolveState); } if (hasStreamOut) { IEnumerator e = tee.OutletStreams.GetEnumerator(); while (e.MoveNext()) { s = s + w; x = x + w; p = p + w; ProcessStreamBase processStreamBase = (ProcessStreamBase)e.Current; UserControl ctrl = null; if (processStreamBase is DryingGasStream) { GasStreamControl gasOutCtrl = (GasStreamControl)this.TeeCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(processStreamBase.Name); ctrl = new GasStreamValuesControl(gasOutCtrl); } else if (processStreamBase is DryingMaterialStream) { MaterialStreamControl materialOutCtrl = (MaterialStreamControl)this.TeeCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(processStreamBase.Name); ctrl = new MaterialStreamValuesControl(materialOutCtrl); } //ProcessStreamBaseControl baseCtrl = this.TeeCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(processStreamBase.Name); //UserControl ctrl = new ProcessVarValuesControl(baseCtrl); ctrl.Location = new Point(x, 12 + 20 + 2); this.groupBoxStreams.Size = new Size(s, this.groupBoxHeight); this.groupBoxFractions.Location = new System.Drawing.Point(this.groupBoxStreams.Width + 4, 24); this.groupBoxStreams.Controls.Add(ctrl); this.Size = new Size(p, this.formHeight); ProsimoUI.SolvableNameTextBox textBoxStreamOutName = new ProsimoUI.SolvableNameTextBox(processStreamBase); textBoxStreamOutName.Width = 80; textBoxStreamOutName.Height = 20; textBoxStreamOutName.Text = processStreamBase.Name; textBoxStreamOutName.Location = new Point(x, 12); this.outletControls.Add(textBoxStreamOutName, textBoxStreamOutName.Text); this.groupBoxStreams.Controls.Add(textBoxStreamOutName); UI.SetStatusColor(textBoxStreamOutName, processStreamBase.SolveState); } // build the fractions for (int i = 0; i < this.TeeCtrl.Tee.OutletStreamAndFractions.Count; i++) { StreamAndFraction sf = (StreamAndFraction)this.TeeCtrl.Tee.OutletStreamAndFractions[i]; TeeStreamAndFractionControl sfCtrl = new TeeStreamAndFractionControl(this.TeeCtrl.Flowsheet, sf); sfCtrl.Location = new Point(0, i * sfCtrl.Height); this.userCtrlFractions.Controls.Add(sfCtrl); sfCtrl.textBoxFraction.KeyUp += new KeyEventHandler(KeyUpNavigator); } } this.Size = new Size(p + this.groupBoxFractions.Width, this.formHeight); this.panel.Visible = true; }
private void UpdateUI() { this.panel.Visible = false; this.groupBox.Visible = false; this.groupBox.Controls.Clear(); this.inletControls.Clear(); int x = INITIAL_LOCATION; int w = VALUE_WIDTH; int s = INITIAL_GROUPBOX_WIDTH; int p = INITIAL_FORM_WIDTH; Mixer mixer = this.MixerCtrl.Mixer; bool hasStreamIn = false; bool hasStreamOut = false; ProcessStreamBase streamIn = null; if (mixer.InletStreams.Count > 0) { hasStreamIn = true; streamIn = (ProcessStreamBase)mixer.InletStreams[0]; } ProcessStreamBase streamOut = mixer.Outlet; hasStreamOut = streamOut != null; if (hasStreamIn || hasStreamOut) { this.groupBox.Visible = true; ProcessStreamBase labelsStream = hasStreamIn ? streamIn : streamOut; //UserControl ctrl = new ProcessVarLabelsControl(labelsStream.VarList); UserControl ctrl = null; if (labelsStream is DryingGasStream) { ctrl = new GasStreamLabelsControl((DryingGasStream)labelsStream); } else if (labelsStream is DryingMaterialStream) { ctrl = new MaterialStreamLabelsControl((DryingMaterialStream)labelsStream); } ctrl.Location = new Point(4, 12 + 20 + 2); this.groupBox.Size = new Size(s, this.groupBoxHeight); this.groupBox.Controls.Add(ctrl); this.Size = new Size(p, this.formHeight); s = s + w; p = p + w; } if (hasStreamIn) { IEnumerator e = mixer.InletStreams.GetEnumerator(); while (e.MoveNext()) { ProcessStreamBase processStreamBase = (ProcessStreamBase)e.Current; UserControl ctrl = null; if (processStreamBase is DryingGasStream) { GasStreamControl gasInCtrl = (GasStreamControl)this.MixerCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(processStreamBase.Name); ctrl = new GasStreamValuesControl(gasInCtrl); } else if (processStreamBase is DryingMaterialStream) { MaterialStreamControl materialInCtrl = (MaterialStreamControl)this.MixerCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(processStreamBase.Name); ctrl = new MaterialStreamValuesControl(materialInCtrl); } //ProcessStreamBaseControl baseCtrl = this.MixerCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(processStreamBase.Name); //UserControl ctrl = new ProcessVarValuesControl(baseCtrl); ctrl.Location = new Point(x, 12 + 20 + 2); this.groupBox.Size = new Size(s, this.groupBoxHeight); this.groupBox.Controls.Add(ctrl); this.Size = new Size(p, this.formHeight); ProsimoUI.SolvableNameTextBox textBoxStreamInName = new ProsimoUI.SolvableNameTextBox(processStreamBase); textBoxStreamInName.Width = 80; textBoxStreamInName.Height = 20; textBoxStreamInName.Text = processStreamBase.Name; textBoxStreamInName.Location = new Point(x, 12); this.inletControls.Add(textBoxStreamInName, textBoxStreamInName.Text); this.groupBox.Controls.Add(textBoxStreamInName); UI.SetStatusColor(textBoxStreamInName, processStreamBase.SolveState); s = s + w; x = x + w; p = p + w; } } if (hasStreamOut) { UserControl ctrl = null; if (streamOut is DryingGasStream) { GasStreamControl gasOutCtrl = (GasStreamControl)this.MixerCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(streamOut.Name); ctrl = new GasStreamValuesControl(gasOutCtrl); } else if (streamOut is DryingMaterialStream) { MaterialStreamControl materialOutCtrl = (MaterialStreamControl)this.MixerCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(streamOut.Name); ctrl = new MaterialStreamValuesControl(materialOutCtrl); } //ProcessStreamBaseControl baseCtrl = this.MixerCtrl.Flowsheet.StreamManager.GetProcessStreamBaseControl(streamOut.Name); //UserControl ctrl = new ProcessVarValuesControl(baseCtrl); ctrl.Location = new Point(x, 12 + 20 + 2); this.groupBox.Size = new Size(s, this.groupBoxHeight); this.groupBox.Controls.Add(ctrl); this.Size = new Size(p, this.formHeight); textBoxStreamOutName.Text = streamOut.Name; textBoxStreamOutName.Location = new Point(x, 12); this.textBoxStreamOutName.SetSolvable(streamOut); this.groupBox.Controls.Add(this.textBoxStreamOutName); UI.SetStatusColor(this.textBoxStreamOutName, streamOut.SolveState); } this.panel.Visible = true; }