Bloom.CollectionCreating.NewCollectionWizard.CreateNewCollection C# (CSharp) 메소드

CreateNewCollection() 공개 정적인 메소드

public static CreateNewCollection ( ) : string
리턴 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;
            }
        }