Bloom.CollectionCreating.NewCollectionWizard.CreateNewCollection C# (CSharp) Method

CreateNewCollection() public static method

public static CreateNewCollection ( ) : string
return string
        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 because this code path
                //can handle creating the path from scratch
                return new CollectionSettings(dlg.GetNewCollectionSettings()).SettingsFilePath;
            }
        }