Inheritance: ApplicationUI
Exemplo n.º 1
0
        public static UIManager GetInstance()
        {
            if(instance == null)
                instance = new UIManager();

            return instance;
        }
Exemplo n.º 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
        }
Exemplo n.º 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
        }