private void OnRecentFileClick(object sender, EventArgs e) { MenuItem item = (MenuItem)sender; string testFileName = item.Text.Substring(2); TestLoaderUI.OpenProject(item.GetMainMenu().GetForm(), testFileName); }
public static void Init(Form ownerForm, TextWriter outWriter, TextWriter errWriter) { AppUI.outWriter = outWriter; Console.SetOut(outWriter); AppUI.errWriter = errWriter; Console.SetError(errWriter); loader = new TestLoader(outWriter, errWriter); loader.ReloadOnRun = UserSettings.Options.ReloadOnRun; loader.ReloadOnChange = UserSettings.Options.ReloadOnChange; loaderUI = new TestLoaderUI(ownerForm, loader); }