示例#1
0
        static void Main(string[] args)
        {
            if (LogManager.InitializeLogManager())
            {
                Console.Title             = "TwEX Console";
                LogManager.ConsoleLogging = true;
                Console.BufferWidth       = Console.WindowWidth = 150;
                Console.BufferHeight      = Console.WindowHeight = 50;
                Console.CursorVisible     = false;

                /*
                 * IntPtr handle = GetConsoleWindow();
                 * IntPtr sysMenu = GetSystemMenu(handle, false);
                 *
                 * if (handle != IntPtr.Zero)
                 * {
                 *  //DeleteMenu(sysMenu, SC_CLOSE, MF_BYCOMMAND);
                 *  DeleteMenu(sysMenu, SC_MINIMIZE, MF_BYCOMMAND);
                 *  DeleteMenu(sysMenu, SC_MAXIMIZE, MF_BYCOMMAND);
                 *  DeleteMenu(sysMenu, SC_SIZE, MF_BYCOMMAND);
                 * }
                 */
            }

            if (PreferenceManager.InitializePreferences())
            {
                if (ExchangeManager.InitializeExchanges())
                {
                    ExchangeManager.InitializeTimer();
                    Run();
                }
            }
        }