Esempio n. 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");
     }
 }
Esempio n. 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);
        }
Esempio n. 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);
        }