public static void Main(string[] args) { //LicenseFile lf = new LicenseFile(System.IO.File.ReadAllText("essential.license")); 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 { Essential @class = new Essential(); @class.Initialize(); IntPtr hWnd = Process.GetCurrentProcess().MainWindowHandle; SetWindowPos(hWnd, new IntPtr(HWND_TOPMOST), 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); Program.bool_0 = true; DeleteMenu(GetSystemMenu(GetConsoleWindow(), false), SC_CLOSE, MF_BYCOMMAND); /* Console.ForegroundColor = ConsoleColor.Red; * Console.WriteLine("\r\n~~~ IF YOU WANT CLOSE EMULATOR PLEASE PRESS ESCAPE (Esc) BUTTON ~~~\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); } } }
internal static string GetString(double double_) { return(double_.ToString(CustomCultureInfo.GetCustomCultureInfo())); }