private void MixerStreamsTypeHandler(object sender, System.EventArgs e) { EvaporationAndDryingSystemPreferences sysPrefs = this.flowsheet.EvaporationAndDryingSystem.Preferences; RadioButton rb = (RadioButton)sender; if (rb == this.radioButtonMixerStreamsTypeGas) { if (rb.Checked) { sysPrefs.MixerInletStreamType = DryingStreamType.DryingGas; } } else if (rb == this.radioButtonMixerStreamsTypeLiquidMaterial) { if (rb.Checked) { sysPrefs.MixerInletStreamType = DryingStreamType.LiquidDryingMaterial; } } else if (rb == this.radioButtonMixerStreamsTypeSolidMaterial) { if (rb.Checked) { sysPrefs.MixerInletStreamType = DryingStreamType.SolidDryingMaterial; } } }
private void UnitOperationCreationHandler(object sender, System.EventArgs e) { EvaporationAndDryingSystemPreferences sysPrefs = this.flowsheet.EvaporationAndDryingSystem.Preferences; RadioButton rb = (RadioButton)sender; if (rb == this.radioButtonUnitOpWithInput) { if (rb.Checked) { sysPrefs.UnitOpCreationType = UnitOpCreationType.WithInputOnly; } } else if (rb == this.radioButtonUnitOpWithInputAndOutput) { if (rb.Checked) { sysPrefs.UnitOpCreationType = UnitOpCreationType.WithInputAndOutput; } } else if (rb == this.radioButtonUnitOpWithoutInputAndOutput) { if (rb.Checked) { sysPrefs.UnitOpCreationType = UnitOpCreationType.WithoutInputAndOutput; } } }
private void TeeStreamsTypeHandler(object sender, System.EventArgs e) { EvaporationAndDryingSystemPreferences sysPrefs = this.flowsheet.EvaporationAndDryingSystem.Preferences; RadioButton rb = (RadioButton)sender; if (rb == this.radioButtonTeeStreamsTypeGas) { if (rb.Checked) { sysPrefs.TeeInletStreamType = typeof(DryingGasStream); } } else if (rb == this.radioButtonTeeStreamsTypeLiquidMaterial) { if (rb.Checked) { sysPrefs.TeeInletStreamType = typeof(LiquidDryingMaterialStream); } } else if (rb == this.radioButtonTeeStreamsTypeSolidMaterial) { if (rb.Checked) { sysPrefs.TeeInletStreamType = typeof(SolidDryingMaterialStream); } } }
private void HeatExchangerHotInletHandler(object sender, System.EventArgs e) { EvaporationAndDryingSystemPreferences sysPrefs = this.flowsheet.EvaporationAndDryingSystem.Preferences; RadioButton rb = (RadioButton)sender; if (rb == this.radioButtonHeatExchangerHotSideGas) { if (rb.Checked) { sysPrefs.HeatExchangerHotInletType = typeof(DryingGasStream); } } else if (rb == this.radioButtonHeatExchangerHotSideMaterial) { if (rb.Checked) { sysPrefs.HeatExchangerHotInletType = typeof(DryingMaterialStream); } } }
public void SetPreferences() { EvaporationAndDryingSystemPreferences sysPrefs = this.flowsheet.EvaporationAndDryingSystem.Preferences; if (sysPrefs.UnitOpCreationType == UnitOpCreationType.WithInputOnly) { this.radioButtonUnitOpWithInput.Checked = true; } else if (sysPrefs.UnitOpCreationType == UnitOpCreationType.WithInputAndOutput) { this.radioButtonUnitOpWithInputAndOutput.Checked = true; } else if (sysPrefs.UnitOpCreationType == UnitOpCreationType.WithoutInputAndOutput) { this.radioButtonUnitOpWithoutInputAndOutput.Checked = true; } if (sysPrefs.HeatExchangerColdInletType == typeof(DryingGasStream)) { this.radioButtonHeatExchangerColdSideGas.Checked = true; } else if (sysPrefs.HeatExchangerColdInletType == typeof(DryingMaterialStream)) { this.radioButtonHeatExchangerColdSideMaterial.Checked = true; } if (sysPrefs.HeatExchangerHotInletType == typeof(DryingGasStream)) { this.radioButtonHeatExchangerHotSideGas.Checked = true; } else if (sysPrefs.HeatExchangerHotInletType == typeof(DryingMaterialStream)) { this.radioButtonHeatExchangerHotSideMaterial.Checked = true; } if (sysPrefs.MixerInletStreamType == DryingStreamType.DryingGas) { this.radioButtonMixerStreamsTypeGas.Checked = true; } else if (sysPrefs.MixerInletStreamType == DryingStreamType.LiquidDryingMaterial) { this.radioButtonMixerStreamsTypeLiquidMaterial.Checked = true; } else if (sysPrefs.MixerInletStreamType == DryingStreamType.SolidDryingMaterial) { this.radioButtonMixerStreamsTypeSolidMaterial.Checked = true; } if (sysPrefs.ValveInletStreamType == typeof(DryingGasStream)) { this.radioButtonValveStreamsTypeGas.Checked = true; } else if (sysPrefs.ValveInletStreamType == typeof(DryingMaterialStream)) { this.radioButtonValveStreamsTypeMaterial.Checked = true; } if (sysPrefs.TeeInletStreamType == DryingStreamType.DryingGas) { this.radioButtonTeeStreamsTypeGas.Checked = true; } else if (sysPrefs.TeeInletStreamType == DryingStreamType.LiquidDryingMaterial) { this.radioButtonTeeStreamsTypeLiquidMaterial.Checked = true; } else if (sysPrefs.TeeInletStreamType == DryingStreamType.SolidDryingMaterial) { this.radioButtonTeeStreamsTypeSolidMaterial.Checked = true; } if (sysPrefs.HeaterInletStreamType == typeof(DryingGasStream)) { this.radioButtonHeaterStreamsTypeGas.Checked = true; } else if (sysPrefs.HeaterInletStreamType == typeof(DryingMaterialStream)) { this.radioButtonHeaterStreamsTypeMaterial.Checked = true; } if (sysPrefs.CoolerInletStreamType == typeof(DryingGasStream)) { this.radioButtonCoolerStreamsTypeGas.Checked = true; } else if (sysPrefs.CoolerInletStreamType == typeof(DryingMaterialStream)) { this.radioButtonCoolerStreamsTypeMaterial.Checked = true; } }