/// <summary>
        /// Gets the horizontal cylindrical tank empty.
        /// </summary>
        /// <returns>Text value.</returns>
        public string GetHorizontalCylindricalTankEmpty()
        {
            string  result;
            Element element = new TankTabElements().HorizontalCylindricalTankStandardEditFieldEmpty;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "HorizontalCylindricalTankStandardEditFieldEmpty is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
示例#2
0
        /// <summary>
        /// Gets the general settings full calibration.
        /// </summary>
        /// <returns>
        /// Text value.
        /// </returns>
        public string GetGeneralSettingsFullCalibration()
        {
            string  result;
            Element element = new SettingsTabElements().GeneralSettingsEditFieldFullCalibration;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "GeneralSettingsEditFieldFullCalibration is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
示例#3
0
        /// <summary>
        /// Gets the general settings distance unit.
        /// </summary>
        /// <returns>
        /// Text value.
        /// </returns>
        public string GetGeneralSettingsDistanceUnit()
        {
            string  result;
            Element element = new SettingsTabElements().GeneralSettingsComboBoxDistanceUnit;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "GeneralSettingsComboBoxDistanceUnit is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
示例#4
0
        /// <summary>
        /// Gets the user settings unit after linearization.
        /// </summary>
        /// <returns>
        /// Text value.
        /// </returns>
        public string GetUserSettingsUnitAfterLinearization()
        {
            string  result;
            Element element = new SettingsTabElements().UserSettingsComboBoxUnitAfterLinearization;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "UserSettingsComboBoxUnitAfterLinearization is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
        /// <summary>
        /// Gets the height of the spherical tank.
        /// </summary>
        /// <returns>Text value.</returns>
        public string GetSphericalTankHeight()
        {
            string  result;
            Element element = new TankTabElements().SphericalTankStandardEditFieldHeight;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "SphericalTankStandardEditFieldHeight is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
示例#6
0
        /// <summary>
        /// Gets the user settings device tag.
        /// </summary>
        /// <returns>
        /// Text value.
        /// </returns>
        public string GetUserSettingsDeviceTag()
        {
            string  result;
            Element element = new SettingsTabElements().UserSettingsEditFieldDeviceTagInfo;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "UserSettingsEditFieldDeviceTagInfo is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
        /// <summary>
        /// Gets the modular tank view.
        /// </summary>
        /// <returns>Text value.</returns>
        public string GetModularTankView()
        {
            string  result;
            Element element = new TankTabElements().ModularTankStandardComboBoxView;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "ModularTankStandardComboBoxView is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
        /// <summary>
        /// Gets the height of the modular tank circular.
        /// </summary>
        /// <returns>Text value.</returns>
        public string GetModularTankCircularHeight()
        {
            string  result;
            Element element = new TankTabElements().ModularTankCircularEditFieldHeight;

            if (element == null)
            {
                result = string.Empty;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "ModularTankCircularEditFieldHeight is null");
            }
            else
            {
                result = new EditParameter().GetParameterValue(element);
            }

            return(result);
        }
示例#9
0
        /// <summary>
        /// Sets the number of calculation steps
        /// </summary>
        /// <param name="numberOfCalculationSteps">
        /// The number of calculation steps.
        /// </param>
        /// <returns>
        /// True: if number is set; False: if otherwise
        /// </returns>
        public bool Run(string numberOfCalculationSteps)
        {
            bool    result;
            Element steps = new GUI.ApplicationArea.MainView.TankTabElements().CalculationStepsTextbox;

            if (steps == null)
            {
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The textbox [Steps] is not accessible");
                result = false;
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The number of calculation steps will be set to: " + numberOfCalculationSteps + ".");
                result = new EditParameter().SetParameterValue(steps, numberOfCalculationSteps);
            }

            return(result);
        }
示例#10
0
        /// <summary>
        /// Sets the user settings unit after linearization.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetUserSettingsUnitAfterLinearization(string value)
        {
            bool    result;
            Element element = new SettingsTabElements().UserSettingsComboBoxUnitAfterLinearization;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "UserSettingsComboBoxUnitAfterLinearization is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "UserSettingsUnitAfterLinearization will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }
示例#11
0
        /// <summary>
        /// Sets the general settings output mode.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetGeneralSettingsOutputMode(string value)
        {
            bool    result;
            Element element = new SettingsTabElements().GeneralSettingsComboBoxOutputMode;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "GeneralSettingsComboBoxOutputMode is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "GeneralSettingsOutputMode will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }
示例#12
0
        /// <summary>
        /// Sets the general settings full calibration.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetGeneralSettingsFullCalibration(string value)
        {
            bool    result;
            Element element = new SettingsTabElements().GeneralSettingsEditFieldFullCalibration;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "GeneralSettingsEditFieldFullCalibration is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "GeneralSettingsFullCalibration will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }
        /// <summary>
        /// Sets the type of the horizontal cylindrical tank standing bottom.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetHorizontalCylindricalTankStandingBottomType(string value)
        {
            bool    result;
            Element element = new TankTabElements().HorizontalCylindricalTankStandingComboBoxBottomType;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "HorizontalCylindricalTankStandingComboBoxBottomType is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "HorizontalCylindricalTankStandingBottomType will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }
        /// <summary>
        /// Sets the tank type
        /// </summary>
        /// <param name="type">Tank type which will be set</param>
        /// <returns>True: if the tank type was set; False: if otherwise</returns>
        public bool Run(string type)
        {
            bool    result;
            Element tankType = new GUI.ApplicationArea.MainView.TankTabElements().TankFormSelectionCombobox;

            if (tankType == null)
            {
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The combobox [Type] is not accessible");
                result = false;
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The tank type will be set to: " + type + ".");
                result = new EditParameter().SetParameterValue(tankType, type);
            }

            return(result);
        }
        /// <summary>
        /// Sets the height of the horizontal cylindrical tank.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetHorizontalCylindricalTankHeight(string value)
        {
            bool    result;
            Element element = new TankTabElements().HorizontalCylindricalTankStandardEditFieldHeight;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "HorizontalCylindricalTankStandardEditFieldDiameter is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "HorizontalCylindricalTankHeight will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }
        /// <summary>
        /// Sets the modular tank view.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetModularTankView(string value)
        {
            bool    result;
            Element element = new TankTabElements().ModularTankStandardComboBoxView;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "ModularTankStandardComboBoxView is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "ModularTankView will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }
        /// <summary>
        /// Sets the height of the modular tank circular.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <returns>
        /// <c>true</c> if set, <c>false</c> otherwise.
        /// </returns>
        public bool SetModularTankCircularHeight(string value)
        {
            bool    result;
            Element element = new TankTabElements().ModularTankCircularEditFieldHeight;

            if (element == null)
            {
                result = false;
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "ModularTankCircularEditFieldHeight is null");
            }
            else
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "ModularTankCircularHeight will be set to: " + value);
                result = new EditParameter().SetParameterValue(element, value);
            }

            return(result);
        }