Ejemplo n.º 1
0
        public override void UpdateNode(ModelNode node)
        {
            var Parent = (IModelDetailView)node.Parent;
            var type   = XafTypesInfo.Instance.FindTypeInfo(Parent.ModelClass.Name);

            if (WXafHelper.CheckIfWXafBase(type))
            {
                //var type = Type.GetType(Parent.ModelClass.Name);
                //if (type != null && type is IWXafObject) {
                string          Name       = "UserPanel";
                IModelUserPanel Item       = node.AddNode <IModelUserPanel>(Name);
                var             layoutItem = Parent.Layout.AddNode <IModelLayoutViewItem>(Name + "Layout");
                layoutItem.ShowCaption = false;
                layoutItem.ViewItem    = Item;
            }
            // }
        }