using System; using System.Collections.Generic; using System.Windows.Forms; using System.IO; namespace FCC_Uber_MDX_Configurator { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { string _openFile = null; if (args.Length > 0) { foreach (string s in args) { if (s.StartsWith("-open:")) { _openFile = s.Substring("-open:".Length); if (File.Exists(_openFile)) { FileInfo _info = new FileInfo(_openFile); _openFile = _info.FullName; } else { MessageBox.Show("Parameter \"Open File\" cannot complete: File not found\r\n\r\n" + _openFile); _openFile = null; } } else if (s.StartsWith("-wizard")) { _openFile = "WIZARD"; } } } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainMDXConfigForm(_openFile)); } } }