예제 #1
0
        /// <summary>
        /// Called when the existing project should be closed.
        /// </summary>
        /// <param name="projectFacade">
        /// The object that contains the methods that allow interaction with
        /// the project system.
        /// </param>
        /// <param name="timer">The function that creates and stores timing intervals.</param>
        private static void OnCloseProject(ILinkToProjects projectFacade, Func <string, IDisposable> timer)
        {
            // If there is no project facade, then we're in
            // designer mode, or something else silly.
            if (projectFacade == null)
            {
                return;
            }

            using (timer("Unloading project"))
            {
                projectFacade.UnloadProject();
            }
        }
예제 #2
0
 /// <summary>
 /// Unloads the current project.
 /// </summary>
 public void UnloadProject()
 {
     m_Projects.UnloadProject();
 }