private void CreateNewProject(object sender, NewProjectEventArgs e) { NAntDocument doc = new NAntDocument(_outputWindow, _options); DocumentWindow window = new DocumentWindow(doc.FullName); SetupWindow(window, doc); window.Contents = Utils.GetNewDocumentContents(e.Info); ParseBuildFile(doc); }