/// <summary> /// Fills the list of script categories based on /// the directories found in the Module-folder. Uses /// the SelectedScriptCategory property value to set the /// selected script boolean value in the list object. /// @Throws PsGuiException /// </summary> public void UpdateScriptCategoriesList() { directoryReader.UpdateScriptCategoriesList(); foreach (ScriptCategory cat in ScriptCategoryBrowser) { if (cat.FriendlyName.Equals(directoryReader.SelectedCategoryName) && cat.IsSelectedCategory != true) { cat.IsSelectedCategory = true; } } }