static int Main(string[] args) { TypeHelper.InvokeFutureStaticMethod(typeof(Application), "EnableVisualStyles"); Application.DoEvents(); using (MbUnitForm form = new MbUnitForm()) { form.ParseArguments(args); Thread thread = new Thread(new ThreadStart(form.ExecuteArguments)); thread.Start(); System.Windows.Forms.Application.Run(form); } return(100); }
static int Main(string[] args) { TypeHelper.InvokeFutureStaticMethod(typeof(Application), "EnableVisualStyles"); Application.DoEvents(); using (MbUnitForm form = new MbUnitForm()) { form.ParseArguments(args); Thread thread = new Thread(new ThreadStart(form.ExecuteArguments)); thread.Start(); System.Windows.Forms.Application.Run(form); } return 100; }