public void UnloadProject(Project project) { if (project == null) { throw new ArgumentNullException("project"); } if (project.ParentEngine != this) { throw new InvalidOperationException("The \"Project\" object specified does not belong to the correct \"Engine\" object."); } project.CheckUnloaded(); RemoveLoadedProject(project); project.Unload(); }
public void UnloadProject(Project project) { if (project == null) { throw new ArgumentNullException("project"); } if (project.ParentEngine != this) { throw new InvalidOperationException("The \"Project\" object specified does not belong to the correct \"Engine\" object."); } project.CheckUnloaded(); if (project.FullFileName != String.Empty) { projects.Remove(project.FullFileName); } project.Unload(); }
public void UnloadProject(Project project) { if (project == null) throw new ArgumentNullException ("project"); if (project.ParentEngine != this) throw new InvalidOperationException ("The \"Project\" object specified does not belong to the correct \"Engine\" object."); project.CheckUnloaded (); RemoveLoadedProject (project); project.Unload (); }