protected override void InitWizard(AngularComponentWizardWindow wnd, object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { base.InitWizard(wnd, automationObject, replacementsDictionary, runKind, customParams); wnd.createCompFolder.IsChecked = false; wnd.createCompTemplateFile.IsChecked = false; wnd.createCompClassFile.IsChecked = false; wnd.createCompTestFile.IsChecked = false; wnd.UpdateFields(); }
protected virtual void ReadSettings(AngularComponentWizardWindow wnd, string projectFullName) { var store = GetProjectSettingsStore(projectFullName); if (store.PropertyExists(projectSettingsCollection, nameof(wnd.compStyleLanguage))) { var styleLanguage = store.GetString(projectSettingsCollection, nameof(wnd.compStyleLanguage)); if (Enum.TryParse <StylesheetLanguage>(styleLanguage, out var result)) { wnd.compStyleLanguage.SelectedValue = result; wnd.UpdateFields(); } } if (store.PropertyExists(projectSettingsCollection, nameof(wnd.compSelectorPrefix))) { wnd.compSelectorPrefix.Text = store.GetString(projectSettingsCollection, nameof(wnd.compSelectorPrefix)); } if (store.PropertyExists(projectSettingsCollection, nameof(wnd.createCompClassFile))) { wnd.createCompClassFile.IsChecked = store.GetBoolean(projectSettingsCollection, nameof(wnd.createCompClassFile)); } if (store.PropertyExists(projectSettingsCollection, nameof(wnd.createCompFolder))) { wnd.createCompFolder.IsChecked = store.GetBoolean(projectSettingsCollection, nameof(wnd.createCompFolder)); } if (store.PropertyExists(projectSettingsCollection, nameof(wnd.createCompStyleFile))) { wnd.createCompStyleFile.IsChecked = store.GetBoolean(projectSettingsCollection, nameof(wnd.createCompStyleFile)); } if (store.PropertyExists(projectSettingsCollection, nameof(wnd.createCompTemplateFile))) { wnd.createCompTemplateFile.IsChecked = store.GetBoolean(projectSettingsCollection, nameof(wnd.createCompTemplateFile)); } if (store.PropertyExists(projectSettingsCollection, nameof(wnd.createCompTestFile))) { wnd.createCompTestFile.IsChecked = store.GetBoolean(projectSettingsCollection, nameof(wnd.createCompTestFile)); } }