protected virtual void PostValidateMainSite(MainSite site)
 {
     if (site.Find((Predicate <ViewElement>)(v => v is DocumentGroup)) != null)
     {
         return;
     }
     site.Child = WindowProfile.CreateDefaultMainSiteContent();
 }
Beispiel #2
0
 protected override void PostValidateMainSite(MainSite site)
 {
     if (site.Find((Predicate <ViewElement>)(v =>
     {
         if (!(v is DocumentGroup))
         {
             return(v is NakedView);
         }
         return(true);
     })) != null)
     {
         return;
     }
     site.Child = WindowProfile.CreateDefaultMainSiteContent();
 }
 protected virtual void PostValidation(WindowProfile profile, WindowProfileValidationContext context)
 {
     if (context.MainSites.Count == 0)
     {
         MainSite mainSite = MainSite.Create();
         mainSite.Child = WindowProfile.CreateDefaultMainSiteContent();
         profile.Children.Add((ViewElement)mainSite);
     }
     else
     {
         if (context.MainSites.Count > 1)
         {
             this.DeleteExtraMainSites(context.MainSites, profile);
         }
         foreach (MainSite site in context.MainSites)
         {
             this.PostValidateMainSite(site);
         }
     }
 }