/// <summary> /// Checks if button [Refresh] is available /// </summary> /// <returns> /// <br>True: if module is ready</br> /// <br>False: if module is not ready</br> /// </returns> public static bool Run() { Button button = new CDICommDTMRepoElements().ButtonRefresh; if (button == null) { return(false); } return(true); }
/// <summary> /// Clicks the refresh button of the CDI Communication DTM /// </summary> /// <returns> /// The <see cref="bool"/>. /// </returns> public static bool Run() { Button button = new CDICommDTMRepoElements().ButtonRefresh; if (button != null && button.Visible) { button.Click(); return(true); } return(false); }
/// <summary> /// Checks if the module configurable (offline) /// by determining if the communication Unit combo box 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 static bool Run() { ComboBox cb = new CDICommDTMRepoElements().CommUnitCombobox; if (cb != null && cb.Enabled) { Log.Info(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Module is configurable"); return(true); } Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Modul is not configurable. Combobox [Selected COM port] is not available or not enabled"); return(false); }