Esempio n. 1
0
 public void InitializeVariableTextBoxes(Flowsheet flowsheet, DryerScopingModel scoping)
 {
     this.textBoxWidth.InitializeVariable(flowsheet.ApplicationPrefs, scoping.Width);
     this.textBoxLength.InitializeVariable(flowsheet.ApplicationPrefs, scoping.Length);
     this.textBoxHeight.InitializeVariable(flowsheet.ApplicationPrefs, scoping.Height);
     this.textBoxLengthWidthRatio.InitializeVariable(flowsheet.ApplicationPrefs, scoping.LengthWidthRatio);
     this.textBoxHeightWidthRatio.InitializeVariable(flowsheet.ApplicationPrefs, scoping.HeightWidthRatio);
 }
Esempio n. 2
0
 public void InitializeVariableLabels(DryerScopingModel scoping)
 {
     this.labelWidth.InitializeVariable(scoping.Width);
     this.labelLength.InitializeVariable(scoping.Length);
     this.labelHeight.InitializeVariable(scoping.Height);
     this.labelLengthWidthRatio.InitializeVariable(scoping.LengthWidthRatio);
     this.labelHeightWidthRatio.InitializeVariable(scoping.HeightWidthRatio);
 }
Esempio n. 3
0
        public string ToPrintScoping()
        {
            UnitSystem    us  = UnitSystemService.GetInstance().CurrentUnitSystem;
            string        nfs = this.flowsheet.NumericFormatString;
            StringBuilder sb  = new StringBuilder();

            sb.Append("Dryer Scoping:");
            sb.Append("\r\n");

            DryerScopingModel scopingModel = this.Dryer.ScopingModel;

            sb.Append(UI.GetVariableName(scopingModel.GasVelocity, us));
            sb.Append(" = ");
            sb.Append(UI.GetVariableValue(scopingModel.GasVelocity, us, nfs));
            sb.Append("\r\n");

            string crossSectionTypeStr = "";

            if (this.Dryer.ScopingModel.CrossSectionType == CrossSectionType.Circle)
            {
                crossSectionTypeStr = "Circle";
            }
            else if (this.Dryer.ScopingModel.CrossSectionType == CrossSectionType.Rectangle)
            {
                crossSectionTypeStr = "Rectangle";
            }
            sb.Append("Cross Section Type");
            sb.Append(" = ");
            sb.Append(crossSectionTypeStr);
            sb.Append("\r\n");

            if (scopingModel.CrossSectionType == CrossSectionType.Circle)
            {
                sb.Append(UI.GetVariableName(scopingModel.Diameter, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.Diameter, us, nfs));
                sb.Append("\r\n");

                sb.Append(UI.GetVariableName(scopingModel.Length, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.Length, us, nfs));
                sb.Append("\r\n");

                sb.Append(UI.GetVariableName(scopingModel.LengthDiameterRatio, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.LengthDiameterRatio, us, nfs));
                sb.Append("\r\n");
            }
            else if (scopingModel.CrossSectionType == CrossSectionType.Rectangle)
            {
                sb.Append(UI.GetVariableName(scopingModel.Width, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.Width, us, nfs));
                sb.Append("\r\n");

                sb.Append(UI.GetVariableName(scopingModel.Length, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.Length, us, nfs));
                sb.Append("\r\n");

                sb.Append(UI.GetVariableName(scopingModel.Height, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.Height, us, nfs));
                sb.Append("\r\n");

                sb.Append(UI.GetVariableName(scopingModel.LengthWidthRatio, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.LengthWidthRatio, us, nfs));
                sb.Append("\r\n");

                sb.Append(UI.GetVariableName(scopingModel.HeightWidthRatio, us));
                sb.Append(" = ");
                sb.Append(UI.GetVariableValue(scopingModel.HeightWidthRatio, us, nfs));
                sb.Append("\r\n");
            }

            return(sb.ToString());
        }
Esempio n. 4
0
 public void InitializeVariableLabels(DryerScopingModel scoping)
 {
     this.labelGasVelocity.InitializeVariable(scoping.GasVelocity);
 }
Esempio n. 5
0
 public DryerScopingCommonLabelsControl(DryerScopingModel scoping)
 {
     // NOTE: this constructor is not used
     InitializeComponent();
     this.InitializeVariableLabels(scoping);
 }
Esempio n. 6
0
 public void InitializeVariableLabels(DryerScopingModel scoping)
 {
     this.labelDiameter.InitializeVariable(scoping.Diameter);
     this.labelLength.InitializeVariable(scoping.Length);
     this.labelLengthDiameterRatio.InitializeVariable(scoping.LengthDiameterRatio);
 }
Esempio n. 7
0
 public void InitializeVariableTextBoxes(Flowsheet flowsheet, DryerScopingModel scoping)
 {
     this.textBoxLength.InitializeVariable(flowsheet.ApplicationPrefs, scoping.Length);
     this.textBoxDiameter.InitializeVariable(flowsheet.ApplicationPrefs, scoping.Diameter);
     this.textBoxLengthDiameterRatio.InitializeVariable(flowsheet.ApplicationPrefs, scoping.LengthDiameterRatio);
 }
Esempio n. 8
0
 public void InitializeVariableTextBoxes(Flowsheet flowsheet, DryerScopingModel scoping)
 {
     this.textBoxGasVelocity.InitializeVariable(flowsheet.ApplicationPrefs, scoping.GasVelocity);
 }