////////////////////////////////////////////////////////////////////////// protected string GetProjectFile(FormBase ParentForm) { ProjectSelectionForm dlg = new ProjectSelectionForm(); if (ParentForm != null) { dlg.AppMgr = ParentForm.AppMgr; } dlg.RecentFiles = Document.RecentProjects; if (dlg.ShowDialog() == DialogResult.OK) { Document.AddRecentProject(dlg.FileName); return(dlg.FileName); } else { return(null); } }
////////////////////////////////////////////////////////////////////////// protected string GetProjectFile(FormBase ParentForm) { ProjectSelectionForm dlg = new ProjectSelectionForm(); if (ParentForm != null) dlg.AppMgr = ParentForm.AppMgr; dlg.RecentFiles = Document.RecentProjects; if (dlg.ShowDialog() == DialogResult.OK) { Document.AddRecentProject(dlg.FileName); return dlg.FileName; } else return null; }