/// <summary> /// Shows the Initialization Wizard when the snapin is added to console /// Returning 'False' will cause MMC to cancel the loading of the snap-in /// </summary> /// <returns>true to continue loading the snap-in. false cancels snap-in loading.</returns> protected override bool OnShowInitializationWizard() { // show modal dialog to get snapin name InitializationWizard initializationWizard = new InitializationWizard(); bool result = (initializationWizard.ShowDialog() == DialogResult.OK); // got name? if (result) { this.RootNode.DisplayName = initializationWizard.SelectedSnapInName; } return(result); }
/// <summary> /// Shows the Initialization Wizard when the snapin is added to console /// Returning 'False' will cause MMC to cancel the loading of the snap-in /// </summary> /// <returns>true to continue loading the snap-in. false cancels snap-in loading.</returns> protected override bool OnShowInitializationWizard() { // show modal dialog to get snapin name InitializationWizard initializationWizard = new InitializationWizard(); bool result = (initializationWizard.ShowDialog() == DialogResult.OK); // got name? if (result) { this.RootNode.DisplayName = initializationWizard.SelectedSnapInName; } return result; }