Exemplo n.º 1
0
 static void Language_New(Language sender, global::umbraco.cms.businesslogic.NewEventArgs e)
 {
     if (!uSync.EventsPaused)
     {
         SaveToDisk(sender);
     }
 }
Exemplo n.º 2
0
        private static void Template_New(global::umbraco.cms.businesslogic.template.Template sender, global::umbraco.cms.businesslogic.NewEventArgs e)
        {
            LogHelper.Info <SyncTemplates>("Template New");
            var template = ApplicationContext.Current.Services.FileService.GetTemplate(sender.Alias);

            if (template != null)
            {
                SaveToDisk((Template)template);
            }
        }
 static void Template_New(global::umbraco.cms.businesslogic.template.Template sender, global::umbraco.cms.businesslogic.NewEventArgs e)
 {
     if (!uSync.EventsPaused)
     {
         LogHelper.Info <uSync>("Template New");
         SaveToDisk(ApplicationContext.Current.Services.FileService.GetTemplate(sender.Alias));
     }
 }