/// <summary> /// Checks if button [Apply] is available /// </summary> /// <returns> /// <br>True: if module is ready</br> /// <br>False: if module is not ready</br> /// </returns> public bool Run() { Button button = new RSG45HARTCommunication.V1011436.GUI.RSG45HARTCommRepoElements().ButtonApply; if (button == null) { return(false); } else { return(true); } }
/// <summary> /// Checks if the module configurable (offline) /// by determining if the IP address text is enabled /// </summary> /// <returns> /// <br>True: if module is configurable (offline)</br> /// <br>False: if module is not configurable (online) or an error occurred</br> /// </returns> public bool Run(bool suppressLogging) { Text cb = new RSG45HARTCommunication.V1011436.GUI.RSG45HARTCommRepoElements().IPAddress; if (!cb.Enabled) { return(false); } else { if (!suppressLogging) { Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Module is configurable"); } return(true); } }