Example #1
0
 private void ChangeDocumentation(DocumentationPart docp, KBObject obj, HPatternInstance wwInstance, HPatternSettings settings)
 {
     TemplateInternal.DocumentationSave(docp, obj, wwInstance, settings);
 }
Example #2
0
 public static void DocumentationSave(DocumentationPart docp, KBObject obj, HPatternInstance wwInstance, HPatternSettings settings)
 {
     bool atualiza = false;
     if (docp.Page == null)
     {
         atualiza = true;
     }
     else
     {
         if (String.IsNullOrEmpty(docp.Page.EditableContent))
         {
             atualiza = true;
         }
     }
     if (atualiza)
     {
         docp.Page = new WikiPage(wwInstance.Model, obj.Name, TemplateInternal.DocumentationFactory(obj.Name, obj.Description, wwInstance, settings));
     }
 }