示例#1
0
 public override void UpdateNode(DevExpress.ExpressApp.Model.Core.ModelNode node)
 {
     foreach (IModelView view in node.Nodes)
     {
         IModelObjectView objectview = view.AsObjectView;
         if (objectview != null && objectview.ModelClass.TypeInfo.Implements <ISingletonBO>())
         {
             view.AllowNew    = false;
             view.AllowDelete = false;
         }
     }
 }
示例#2
0
        public override void UpdateNode(DevExpress.ExpressApp.Model.Core.ModelNode node)
        {
            IModelViewLayout  layoutNode = (IModelViewLayout)node;
            IModelLayoutGroup mainGroup  =
                layoutNode.GetNode(ModelDetailViewLayoutNodesGenerator.MainLayoutGroupName) as IModelLayoutGroup;

            mainGroup.Direction = FlowDirection.Horizontal;
            IModelLayoutViewItem myItem = mainGroup.AddNode <IModelLayoutViewItem>("Icon");

            myItem.Index               = int.MinValue;
            myItem.MaxSize             = new System.Drawing.Size(64, 64);
            myItem.SizeConstraintsType = XafSizeConstraintsType.Custom;
            myItem.ViewItem            = ((IModelCompositeView)layoutNode.Parent).Items.GetNode("Icon") as IModelViewItem;
        }
示例#3
0
        public override void UpdateNode(DevExpress.ExpressApp.Model.Core.ModelNode node)
        {
            IModelViewItems itemsNode = (IModelViewItems)node;

            itemsNode.AddNode <IModelClassIcon>("Icon");
        }
示例#4
0
 public override void UpdateNode(DevExpress.ExpressApp.Model.Core.ModelNode node)
 {
     //UpdateNodeCore(node);
 }