Ejemplo n.º 1
0
 protected override void OnActivated()
 {
     base.OnActivated();
     var displayFeatureModelAttributes = View.ObjectTypeInfo.FindAttributes<DisplayFeatureModelAttribute>();
     _displayFeatureModelAttribute =
         displayFeatureModelAttributes.Where(AttributePredicate()).FirstOrDefault();
     _simpleAction.Active[NoModelAssociated] = (_displayFeatureModelAttribute != null&&_displayFeatureModelAttribute.ViewId==View.Id);    
 }
        protected override void OnActivated()
        {
            base.OnActivated();
            var displayFeatureModelAttributes = View.ObjectTypeInfo.FindAttributes <DisplayFeatureModelAttribute>();

            _displayFeatureModelAttribute =
                displayFeatureModelAttributes.Where(AttributePredicate()).FirstOrDefault();
            _simpleAction.Active[NoModelAssociated] = (_displayFeatureModelAttribute != null && _displayFeatureModelAttribute.ViewId == View.Id);
        }