Esempio n. 1
0
        private static bool IsVisibleCore(IModelNode node, string propertyName, GridListEditorVisibilityCalculatorHelper calculatorHelper)
        {
            var isVisible = calculatorHelper.IsVisible(node, propertyName);

            if (isVisible)
            {
                var modelListView = node as IModelListView ?? node.GetParent <IModelListView>();
                return(!modelListView.BandsLayout.Enable);
            }
            return(false);
        }
Esempio n. 2
0
 public static ModelNode GetParent(IModelNode node)
 {
     return((ModelNode)(node.GetParent <IModelColumn>() ?? node.GetParent <IModelListView>()));
 }
Esempio n. 3
0
 public override bool IsVisible(IModelNode node, string propertyName)
 {
     return(base.IsVisible(node, propertyName) && node.GetParent <IModelListView>().BandsLayout.Enable);
 }
Esempio n. 4
0
        public static ModelNode GetParent(IModelNode node)
        {
            var modelColumn = node.GetParent <IModelColumn>();

            return(modelColumn != null ? (ModelNode)modelColumn : (ModelNode)node.GetParent <IModelListView>());
        }
 public bool IsVisible(IModelNode node, string propertyName)
 {
     return(node.GetParent <IModelAction>().ToAction().GetType() == typeof(T));
 }