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; } } }
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; }
public override void UpdateNode(DevExpress.ExpressApp.Model.Core.ModelNode node) { IModelViewItems itemsNode = (IModelViewItems)node; itemsNode.AddNode <IModelClassIcon>("Icon"); }
public override void UpdateNode(DevExpress.ExpressApp.Model.Core.ModelNode node) { //UpdateNodeCore(node); }