public static IModelList<IModelDetailView> Get_DetailViews(IModelConditionalDetailViewRule conditionalDetailViewRule)
 {
     var calculatedModelNodeList = new CalculatedModelNodeList<IModelDetailView>();
     if (conditionalDetailViewRule.ModelClass != null) {
         var modelDetailViews = conditionalDetailViewRule.Application.Views.OfType<IModelDetailView>().Where(view => view.ModelClass==conditionalDetailViewRule.ModelClass);
         calculatedModelNodeList.AddRange(modelDetailViews);
     }
     return calculatedModelNodeList;
 }
Exemplo n.º 2
0
        public static IModelList <IModelDetailView> Get_DetailViews(IModelConditionalDetailViewRule conditionalDetailViewRule)
        {
            var calculatedModelNodeList = new CalculatedModelNodeList <IModelDetailView>();

            if (conditionalDetailViewRule.ModelClass != null)
            {
                var modelDetailViews = conditionalDetailViewRule.Application.Views.OfType <IModelDetailView>().Where(view => view.ModelClass == conditionalDetailViewRule.ModelClass);
                calculatedModelNodeList.AddRange(modelDetailViews);
            }
            return(calculatedModelNodeList);
        }