Esempio n. 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>();
 }
Esempio n. 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);
        }