示例#1
0
 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");
     }
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }