Inheritance: ApplicationUI
示例#1
0
        public static UIManager GetInstance()
        {
            if(instance == null)
                instance = new UIManager();

            return instance;
        }
示例#2
0
        public static void Main(string[] args)
        {
            Controller = new Controller();
            UI = UIManager.GetInstance();
            GreenQloud.Core.Program.Run(Controller, UI);
            Application.Run(UI);
#if !__MonoCS__
            // Suppress assertion messages in debug mode
            GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
            GC.WaitForPendingFinalizers();
#endif
        }
示例#3
0
        public static void Main(string[] args)
        {
            try
            {
                Controller = new Controller();                
                UI = UIManager.GetInstance();
                GreenQloud.Core.Program.Run(Controller, UI);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.StackTrace);
                Logger.LogInfo("Init", e);
                Environment.Exit(-1);
            }

#if !__MonoCS__
            // Suppress assertion messages in debug mode
            GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
            GC.WaitForPendingFinalizers();
#endif
        }