Beispiel #1
0
        internal static void InitEnvironment()
        {
            if (!ButterflyEnvironment.isLive)
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.CursorVisible   = false;
                AppDomain currentDomain = AppDomain.CurrentDomain;
                currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);

                ButterflyEnvironment.Initialize();
            }
        }
Beispiel #2
0
 public static void InitEnvironment()
 {
     Console.ForegroundColor = ConsoleColor.White;
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
     ButterflyEnvironment.Initialize();
 }