/// <summary> /// Clicks the OK button /// </summary> public bool Run() { var pressButton = new Functions.ApplicationArea.Execution.PressButton(); Button button = new GUI.HARTCommRepoElements().ButtonOK; return(pressButton.Run(button)); }
/// <summary> /// Checks if button [OK] 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 GUI.HARTCommRepoElements().ButtonOK; if (button == null) { return(false); } return(true); }
/// <summary> /// Checks if the module configurable (offline) /// by determining if the communication Interface combo box is enabled /// </summary> /// <param name="suppressLogging"> /// The suppress Logging. /// </param> /// <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) { ComboBox cb = new GUI.HARTCommRepoElements().CommunicationInterfaceCombobox; if (!cb.Enabled) { return(false); } if (!suppressLogging) { Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Module is configurable"); } return(true); }