コード例 #1
0
        /// <summary>
        /// Sets the "End Address" text field to a specific value
        /// </summary>
        /// <param name="value">The value of the list item to set</param>
        /// <returns>
        ///     <br>True: if the text was set to the desired value</br>
        ///     <br>False: if the text could not be set or otherwise errors occurred</br>
        /// </returns>
        public bool Run(string value)
        {
            var setParam = new Functions.ApplicationArea.Execution.SetParameter();
            int intValue = Convert.ToInt32(value);

            // check if value is out of specification to avoid pop ups
            if (intValue > 126 | intValue < 1)
            {
                Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "The value to set is not a valid value. Please provide a value between and including 1 and 126");
                return(false);
            }

            return(setParam.SetParameterValue(new GUI.ProfIdtmDpv1RepoElements().EndAddress, value));
        }
コード例 #2
0
        /// <summary>
        /// Sets the "End Address" combo box to a specific value
        /// </summary>
        /// <param name="value">The value of the list item to set</param>
        /// <returns>
        ///     <br>True: if the correct list item was selected</br>
        ///     <br>False: if the item could not be selected, does not exist or another error occurred</br>
        /// </returns>
        public bool Run(string value)
        {
            var setParam = new Functions.ApplicationArea.Execution.SetParameter();

            return(setParam.SetParameterValue(new GUI.HARTCommRepoElements().EndAddressCombobox, value));
        }
コード例 #3
0
        /// <summary>
        /// Sets the "Timeout" combobox to a specific value
        /// </summary>
        /// <param name="value">The value of the listitem to set</param>
        /// <returns>
        ///     <br>True: if the correct listitem was selected</br>
        ///     <br>False: if the item could not be selected, does not exist or another error occurred</br>
        /// </returns>
        public bool Run(string value)
        {
            var setParam = new Functions.ApplicationArea.Execution.SetParameter();

            return(setParam.SetParameterValue(new GUI.RSG45HARTCommRepoElements().TimeoutCombobox, new GUI.RSG45HARTCommRepoElements().TimeoutComboButton, value));
        }
コード例 #4
0
        /// <summary>
        /// Sets the "Board Name" combo box to a specific value
        /// </summary>
        /// <param name="value">The value of the list item to set</param>
        /// <returns>
        ///     <br>True: if the correct list item was selected</br>
        ///     <br>False: if the item could not be selected, does not exist or another error occurred</br>
        /// </returns>
        public bool Run(string value)
        {
            var setParam = new Functions.ApplicationArea.Execution.SetParameter();

            return(setParam.SetParameterValue(new GUI.ProfIdtmDpv1RepoElements().BoardNameComboBox, new GUI.ProfIdtmDpv1RepoElements().BoardNameComboboxButtonOpen, value));
        }
コード例 #5
0
        /// <summary>
        /// Sets the "Link name" combo box to a specific value
        /// </summary>
        /// <param name="value">The value of the list item to set</param>
        /// <returns>
        ///     <br>True: if the correct list item was selected</br>
        ///     <br>False: if the item could not be selected, does not exist or another error occurred</br>
        /// </returns>
        public bool Run(string value)
        {
            var setParam = new Functions.ApplicationArea.Execution.SetParameter();

            return(setParam.SetParameterValue(new GUI.FFH1CommDTMRepoElements().LinkNameCombobox, new GUI.FFH1CommDTMRepoElements().LinkNameComboboxButtonOpen, value));
        }