/// <summary> /// Called when the creation of a new project is required. /// </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 OnCreateNewProject(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("Creating new project")) { projectFacade.NewProject(); } }
/// <summary> /// Creates a new project. /// </summary> public void NewProject() { m_Projects.NewProject(); }