예제 #1
0
파일: Program.cs 프로젝트: nightwolf93/Bfly
        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();
            }
        }
예제 #2
0
 public static void InitEnvironment()
 {
     Console.ForegroundColor = ConsoleColor.White;
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
     ButterflyEnvironment.Initialize();
 }