void LoadProject(string filename) { var splash = new LoaderForm(); try { splash.Show(); splash.Update(); UnloadAssemblies(listAssemblies.Items); listAssemblies.Update(); project = XunitProject.Load(filename); mruProjectList.Add(filename); foreach (XunitProjectAssembly assembly in project.Assemblies) { AddTestAssembly(mate.Load(assembly.AssemblyFilename, assembly.ConfigFilename, assembly.ShadowCopy)); } } catch (Exception ex) { MessageBox.Show("Error loading project:\r\n\r\n" + ex.Message, windowTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { splash.Close(); splash.Dispose(); } UpdateAssemblyDynamicMenus(); UpdateProjectDynamicMenus(); }
public RunnerForm(string[] assemblyFilenames) : this() { using (var splash = new LoaderForm()) { splash.Show(); splash.Update(); foreach (string assemblyFilename in assemblyFilenames) { LoadAssembly(Path.GetFullPath(assemblyFilename), null); } splash.Close(); } }
void LoadProject(string filename) { var splash = new LoaderForm(); try { splash.Show(); splash.Update(); UnloadAssemblies(listAssemblies.Items); listAssemblies.Update(); project = XunitProject.Load(filename); mruProjectList.Add(filename); foreach (XunitProjectAssembly assembly in project.Assemblies) AddTestAssembly(mate.Load(assembly.AssemblyFilename, assembly.ConfigFilename, assembly.ShadowCopy)); } catch (Exception ex) { MessageBox.Show("Error loading project:\r\n\r\n" + ex.Message, windowTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { splash.Close(); splash.Dispose(); } UpdateAssemblyDynamicMenus(); UpdateProjectDynamicMenus(); }
public RunnerForm(string[] assemblyFilenames) : this() { using (var splash = new LoaderForm()) { splash.Show(); splash.Update(); foreach (string assemblyFilename in assemblyFilenames) LoadAssembly(Path.GetFullPath(assemblyFilename), null); splash.Close(); } }