/// <summary> /// Given a path to a config, loads the folder config and returns it /// </summary> /// <param name="configPath"></param> /// <returns></returns> public static GenericHierarchyConfig LoadConfigFromPath(string configPath) { var folderConfig = new GenericHierarchyConfig(); folderConfig = Core.LoadConfig(configPath); return(folderConfig); }
/// <summary> /// We've switched to a different config, let's reset and load that config /// </summary> /// <param name="newSelection"></param> public static void SetActiveSelection(TemplateButtonEntry newSelection) { ClearSelection(); activeSelection = newSelection; // reset template file name for copies tempFileName = activeSelection.displayName + " Copy"; // load the active config activeConfig = Core.LoadConfig(activeSelection.path); // cache these, they are used in the template editor tempConfigNameString = activeConfig.name; tempConfigDescriptionString = activeConfig.description; }