/// <summary> /// Initialize cron /// </summary> /// <param name="interval_ms"></param> public CCron(CGlobals _globals, CErrors _errors, CDebug _debug) { Globals = _globals; errors = _errors; debug = _debug; program_list = new Dictionary <string, System.Windows.Forms.Timer>(); }
/// <summary> /// Get global vars. And initialize basic error and debug objects /// </summary> public CSystem() { // Load globals vars Globals = new CGlobals(); // errors & debug errors = new CErrors(Globals); debug = new CDebug(Globals); // Init Cron Cron = new CCron(Globals, errors, debug); }
public CErrors(CGlobals Globals, JToken base_error) { jErrors = (JArray)base_error; Console_output = Globals.get(dGLOBALS.SHOW_ERRORS_IN_CONSOLE).ToObject <bool>(); }
public CErrors(CGlobals Globals) { jErrors = new JArray(); Console_output = Globals.get(dGLOBALS.SHOW_ERRORS_IN_CONSOLE).ToObject <bool>(); }
public CDebug(CGlobals Globals, JToken base_debug) { jDebug = (JArray)base_debug; Console_output = Globals.get(dGLOBALS.SHOW_DEBUG_IN_CONSOLE).ToObject <bool>(); }
public CDebug(CGlobals Globals) { jDebug = new JArray(); Console_output = Globals.get(dGLOBALS.SHOW_DEBUG_IN_CONSOLE).ToObject <bool>(); }