public static string CreateNewCollection()
{
bool showNewCollectionWizard = Settings.Default.MruProjects.Latest == null;
using (var dlg = new NewCollectionWizard(showNewCollectionWizard))
{
dlg.ShowInTaskbar = showNewCollectionWizard; //if we're at this stage, there isn't a bloom icon there already.
if (DialogResult.OK != dlg.ShowDialog())
{
return(null);
}
//review: this is a bit weird... we clone it instead of just using it just becuase this code path
//can handle creating the path from scratch
return(new CollectionSettings(dlg.GetNewCollectionSettings()).SettingsFilePath);
}
}