예제 #1
0
        static void Init()
        {
            try
            {
                systemInitializing = true;
                /*
                for (int i = 0; i < 1000000000; i++) //testing
                {
                    i2++;
                    if (i == 100000000)
                        i -= 10000;
                    Thread.Sleep(100);
                }
                */

                system_Instance = new ZoliloSystem(null);
                system_Instance.Initialize();
                systemInitialized = true;
                systemInitializing = false;
            }
            catch (Exception e)
            {
                //Invalidate object if it did not initialize
                //This will force it to re-initialize
                system_Instance = null;
                systemInitialized = false;
                systemInitializing = false;
                LastInitializationException = e;
            }
        }
예제 #2
0
 void Application_Start(object sender, EventArgs e)
 {
     b = zContext.System;
 }