Exemple #1
0
        [Admin] public static TM_FileStorage                hook_Events_VirtualArticles(this TM_FileStorage tmFileStorage)
        {
            UserRole.Admin.demand();
            var tmXmlDatabase = tmFileStorage.TMXmlDatabase;

            tmXmlDatabase.Events.VirtualArticles_Loaded.add((tmArticle) => tmFileStorage.loadVirtualArticles());
            tmXmlDatabase.Events.VirtualArticles_Saved.add((tmArticle) => tmFileStorage.saveVirtualArticles());

//            tmXmlDatabase.Articles_Cache_Updated.add((tmArticle)=> tmXmlDatabase.queue_Save_GuidanceItemsCache());

            return(tmFileStorage);
        }