示例#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
文件: CSystem.cs 项目: jiman14/APODE
        /// <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
文件: CErrors.cs 项目: jiman14/APODE
 public CErrors(CGlobals Globals, JToken base_error)
 {
     jErrors        = (JArray)base_error;
     Console_output = Globals.get(dGLOBALS.SHOW_ERRORS_IN_CONSOLE).ToObject <bool>();
 }
示例#4
0
文件: CErrors.cs 项目: jiman14/APODE
 public CErrors(CGlobals Globals)
 {
     jErrors        = new JArray();
     Console_output = Globals.get(dGLOBALS.SHOW_ERRORS_IN_CONSOLE).ToObject <bool>();
 }
示例#5
0
文件: CDebug.cs 项目: jiman14/APODE
 public CDebug(CGlobals Globals, JToken base_debug)
 {
     jDebug         = (JArray)base_debug;
     Console_output = Globals.get(dGLOBALS.SHOW_DEBUG_IN_CONSOLE).ToObject <bool>();
 }
示例#6
0
文件: CDebug.cs 项目: jiman14/APODE
 public CDebug(CGlobals Globals)
 {
     jDebug         = new JArray();
     Console_output = Globals.get(dGLOBALS.SHOW_DEBUG_IN_CONSOLE).ToObject <bool>();
 }