public void RunWithWelcome() { Application.EnableVisualStyles(); Browser.SetUpXulRunner(); using (var dlg = new NewCollectionWizard(true)) { dlg.ShowDialog(); } }
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); } }
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; } }