Beispiel #1
0
 public static void VisitViewContained(ViewDataVisitorContained viewDataVisitor, ViewFactory viewFactory, View[] views)
 {
     viewDataVisitor.VisitPrimary(viewFactory.ViewName, views.Length);
     for (int i = 0; i < views.Length; i++)
     {
         viewDataVisitor.VisitContained(i, views[i]);
     }
 }
Beispiel #2
0
 public static void VisitViewContained(
     ViewDataVisitorContained viewDataVisitor,
     ViewFactory viewFactory,
     View[] views)
 {
     viewDataVisitor.VisitPrimary(viewFactory.GetType().GetSimpleName(), views.Length);
     for (var i = 0; i < views.Length; i++) {
         viewDataVisitor.VisitContained(i, views[i]);
     }
 }
Beispiel #3
0
        public static void VisitView(
            ViewDataVisitorContained viewDataVisitor,
            object groupkey,
            View view)
        {
            if (view == null) {
                return;
            }

            viewDataVisitor.VisitContained(groupkey, view);
        }
Beispiel #4
0
 public static void VisitView(ViewDataVisitorContained viewDataVisitor, Object groupkey, Object subviewHolder)
 {
     if (subviewHolder == null)
     {
         return;
     }
     if (subviewHolder is View)
     {
         viewDataVisitor.VisitContained(groupkey, (View)subviewHolder);
         return;
     }
     if (subviewHolder is ICollection <View> )
     {
         var deque = (ICollection <View>)subviewHolder;
         foreach (var view in deque)
         {
             viewDataVisitor.VisitContained(groupkey, view);
             return;
         }
     }
 }