public MogUtil_ClassificationLoader() { // Attempt to use the normal default template defaultClassesPath = MOG_ControllerSystem.LocateInstallItem("ProjectTemplates\\Default"); if (defaultClassesPath.Length == 0) { // Fallback to using the library template defaultClassesPath = MOG_ControllerSystem.LocateInstallItem("ProjectTemplates\\Library"); } }
public static ArrayList GetTemplates() { ArrayList templates = new ArrayList(); foreach (string templateDir in Directory.GetDirectories(MOG_ControllerSystem.LocateInstallItem("ProjectTemplates"))) { templates.Add(new ClassificationTemplateInfo(Path.GetFileName(templateDir), templateDir)); } return(templates); }
public void ResetEverything() { this.tvDisk.ResetEverything(); this.tvSelected.ResetEverything(); this.tvAssets.ResetEverything(); // Reset the default template classes string defaultTemplatePath = MOG_ControllerSystem.LocateInstallItem("ProjectTemplates\\Default"); if (defaultTemplatePath.Length == 0) { // Fallback to using the library template defaultTemplatePath = MOG_ControllerSystem.LocateInstallItem("ProjectTemplates\\Library"); } ResetClasses(defaultTemplatePath); FillAssetTreeWithTemplate(false); }