public bool CreateProjectFile (Project parentProject, string basePath, string selectedTemplateId) { NewFileDialog nfd = new NewFileDialog (parentProject, basePath); if (selectedTemplateId != null) nfd.SelectTemplate (selectedTemplateId); return MessageService.ShowCustomDialog (nfd) == (int) Gtk.ResponseType.Ok; }
protected override void Run () { var dlg = new NewFileDialog (null, null); // new file seems to fail if I pass the project IdeApp.ProjectOperations.CurrentSelectedProject MessageService.ShowCustomDialog (dlg, IdeApp.Workbench.RootWindow); }