static int LaunchForm(string inputFile) { FreeConsole(); Application.EnableVisualStyles(); Application.DoEvents();// make sure EnableVisualStyles works. MainForm form = new MainForm(inputFile); Application.Run(form); return 0; }
public MainFormPresenter(MainForm view) { if (view == null) throw new ArgumentNullException("view"); _view = view; }