public static UIManager GetInstance() { if(instance == null) instance = new UIManager(); return instance; }
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 }
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 }