using System; using System.Collections.Generic; using System.Windows.Forms; namespace Fusion_Control_Centre_UberMDX { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] inputargs) { bool runInDebugMode = false; bool showSplash = false; bool useBasicGraphics = false; bool useThreading =true; foreach (string input in inputargs) { if (input.ToLower() == "-debug") { runInDebugMode = true; } else if (input.ToLower() == "-nosplash") { showSplash = false; } else if (input.ToLower() == "-splash") { showSplash = true; } else if (input.ToLower() == "-basicgui") { useBasicGraphics = true; } else if (input.ToLower() == "-nothread") { useThreading = true; } } if (runInDebugMode) { try { MessageBox.Show("Running in Debug Mode..."); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainMDX(showSplash, useBasicGraphics, useThreading)); } catch (Exception e) { MessageBox.Show(e.ToString()); e.ToString(); } } else { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainMDX(showSplash, useBasicGraphics, useThreading)); } } } }