Пример #1
0
        public static void UpdateMastersElement(this IMasterManager m)
        {
            Element masterFilesElement = m.GetMastersElement();

            if (masterFilesElement == null)
            {
                return;
            }
            // TODO
        }
Пример #2
0
        private static List <PluginFile> GetMasterFiles(this IMasterManager m)
        {
            var     masterFiles        = new List <PluginFile>();
            Element masterFilesElement = m.GetMastersElement();

            if (masterFilesElement == null)
            {
                return(masterFiles);
            }
            PluginManager manager        = m.file.session.pluginManager;
            var           masterElements = masterFilesElement.GetElements();

            foreach (var element in masterElements)
            {
                string filename = element.GetValue("MAST");
                masterFiles.Add(manager.GetFileByName(filename, true));
            }
            return(masterFiles);
        }