Пример #1
0
 /// <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>();
 }
Пример #2
0
        /// <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);
        }
Пример #3
0
 public CErrors(CGlobals Globals, JToken base_error)
 {
     jErrors        = (JArray)base_error;
     Console_output = Globals.get(dGLOBALS.SHOW_ERRORS_IN_CONSOLE).ToObject <bool>();
 }
Пример #4
0
 public CErrors(CGlobals Globals)
 {
     jErrors        = new JArray();
     Console_output = Globals.get(dGLOBALS.SHOW_ERRORS_IN_CONSOLE).ToObject <bool>();
 }
Пример #5
0
 public CDebug(CGlobals Globals, JToken base_debug)
 {
     jDebug         = (JArray)base_debug;
     Console_output = Globals.get(dGLOBALS.SHOW_DEBUG_IN_CONSOLE).ToObject <bool>();
 }
Пример #6
0
 public CDebug(CGlobals Globals)
 {
     jDebug         = new JArray();
     Console_output = Globals.get(dGLOBALS.SHOW_DEBUG_IN_CONSOLE).ToObject <bool>();
 }