예제 #1
0
파일: SSystem.cs 프로젝트: jiman14/ARQODE
        /// <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);
            }
        }