/// <summary> /// Get global vars. And initialize basic error and debug objects /// </summary> public CSystem(String app_path) { // Load system globals vars if (app_path == "") { Globals = new CGlobals(); // Load app globals vars App_globals = new CGlobals(Globals.get_str(dGLOBALS.ACTIVE_APP)); } else { Globals = new CGlobals(app_path); } system_errors = false; if (Globals.Errors != "") { Console.WriteLine("Error in Globals file: " + Globals.Errors); system_errors = true; } else { // Program tracer ProgramTracer = new TTracer(Globals); // views errors & debug errors = new CErrors(Globals); debug = new CDebug(Globals); // Init Cron Cron = new CCron(Globals, errors, debug); } }
/// <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(String App_name) { // Load globals vars Globals = new CGlobals(App_name); system_errors = false; if (Globals.Errors != "") { Console.WriteLine("Error in Globals file: " + Globals.Errors); system_errors = true; } else { // views errors & debug errors = new CErrors(Globals); debug = new CDebug(Globals); // Program tracer ProgramTracer = new TTracer(Globals); // Init Cron Cron = new CCron(Globals, errors, debug); } }