Ejemplo n.º 1
0
        private EventHandlerModel EventSubscription_Inserted(object sender, SceneNode basisNode, object basisContent, SceneNode newPathNode)
        {
            DocumentCompositeNode documentCompositeNode = newPathNode.Parent.DocumentNode as DocumentCompositeNode;
            EventHandlerModel     eventHandlerModel1    = (EventHandlerModel)null;

            if (documentCompositeNode != null)
            {
                IPropertyId propertyId = (IPropertyId)newPathNode.Parent.GetPropertyForChild(newPathNode);
                if (propertyId is IEvent)
                {
                    foreach (EventHandlerModel eventHandlerModel2 in (IEnumerable <EventHandlerModel>) this.EventHandlers)
                    {
                        if (eventHandlerModel2.EventKey == propertyId)
                        {
                            eventHandlerModel1 = eventHandlerModel2;
                            break;
                        }
                    }
                    if (eventHandlerModel1 != null)
                    {
                        eventHandlerModel1.Refresh();
                    }
                }
            }
            return(eventHandlerModel1);
        }
Ejemplo n.º 2
0
 private void EventSubscription_ContentChanged(object sender, SceneNode pathNode, EventHandlerModel content, DocumentNodeMarker damageMarker, DocumentNodeChange damage)
 {
     if (content == null)
     {
         return;
     }
     content.Refresh();
 }
Ejemplo n.º 3
0
 private void EventSubscription_Removed(object sender, SceneNode basisNode, object basisContent, SceneNode oldPathNode, EventHandlerModel oldContent)
 {
     if (oldContent == null)
     {
         return;
     }
     oldContent.Refresh();
 }