예제 #1
0
        public static void Main(string[] args)
        {
            CustomCultureInfo.SetupCustomCultureInfo();

            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(Program.smethod_0);

            Program.delegate0_0 = (Program.EventHandler)Delegate.Combine(Program.delegate0_0, new Program.EventHandler(Program.smethod_1));

            Program.SetConsoleCtrlHandler(Program.delegate0_0, true);

            try
            {
                HabboIM @class = new HabboIM();
                @class.Initialize();
                Program.bool_0 = true;
                DeleteMenu(GetSystemMenu(GetConsoleWindow(), false), SC_CLOSE, MF_BYCOMMAND);
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("\r\nDrücke ESC, um den Emulator runterzufahren.\r\n");
                Console.ForegroundColor = ConsoleColor.Gray;
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }

            while (true)
            {
                ConsoleKeyInfo = Console.ReadKey();

                if (ConsoleKeyInfo.Key == ConsoleKey.Escape)
                {
                    smethod_1(CtrlType.CTRL_CLOSE_EVENT);
                }
            }
        }
예제 #2
0
 internal static string GetString(double double_)
 {
     return(double_.ToString(CustomCultureInfo.GetCustomCultureInfo()));
 }