static void Main(string[] args) { if (args.Length <= 0) { return; } BuildCommandLine cmd = new BuildCommandLine(args); if (!cmd.Parse()) { MessageBox.Show(cmd.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new frmMain(cmd)); }
public frmMain(BuildCommandLine cmdLine) { InitializeComponent(); this.CommandLine = cmdLine; }