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(); } } }
public TwEX_FormEditor() { InitializeComponent(); FormManager.mainForm = this; if (LogManager.InitializeLogManager()) { if (InitializePreferences()) { Task.Factory.StartNew(() => ExchangeManager.InitializeExchanges()); } else { LogManager.AddLogMessage(Name, "TwEX_FormEditor", "Problem Loading Preferences", LogManager.LogMessageType.DEBUG); } } }