/// <summary> /// returns initial Start/Stop button disabled status /// </summary> /// <returns>disabled or not</returns> public static string GetInitialStartStopStatus() { string status = StatusHandler.GetServiceStatus(); if (status == ConstExpressions.SERVICE_STATUS_STARTED || status == ConstExpressions.SERVICE_STATUS_STOPPED) { return(""); } return("Disabled"); }
/// <summary> /// returns initial QuickCheck button disabled status /// </summary> /// <returns>disabled or not</returns> public static string GetInitialQuickCheckStatus() { string status = StatusHandler.GetServiceStatus(); if (status != ConstExpressions.SERVICE_STATUS_STARTED) { return("Disabled"); } IlcStatusData data = IlcWebDao.GetStatusData(); return(data.currServiceState == ConstExpressions.WORK_STATUS_IDLE ? "" : "Disabled"); }
/// <summary> /// returns initial text for the start/stop button /// </summary> /// <returns>initial text</returns> public static string GetInitialStartStopText() { string status = StatusHandler.GetServiceStatus(); return(status == ConstExpressions.SERVICE_STATUS_STARTED ? ConstExpressions.STOP_BUTTON_TEXT : ConstExpressions.START_BUTTON_TEXT); }