bool IsFilePropertyHidden(InstanceMember member) { ArrowIntentComponentVm owner = member.Instance as ArrowIntentComponentVm; bool isFile = owner.GlueItemType == DataTypes.GlueItemType.File || ((owner.GlueItemType == DataTypes.GlueItemType.NamedObject) && owner.IsFileRequirement == DataTypes.CharacteristicRequirement.MustBe); return(!isFile); }
bool IsHiddenDelegate(InstanceMember member) { ArrowIntentComponentVm owner = member.Instance as ArrowIntentComponentVm; return(owner.GlueItemType != DataTypes.GlueItemType.NamedObject); //return false; //return ((InstanceMember)component).GlueItemType != DataTypes.GlueItemType.NamedObject; }
private void HandleComponentsChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (!mSuppressCollectionChangedEvents) { // We need to modify the model depending on wwhat we did switch (e.Action) { case System.Collections.Specialized.NotifyCollectionChangedAction.Remove: object removedAsObject = e.OldItems[0]; ArrowIntentComponentVm asVm = removedAsObject as ArrowIntentComponentVm; this.Model.Components.Remove(asVm.Model); break; } } }