Ejemplo n.º 1
0
 public Timeline(Operator operatorParent)
 {
     this.operatorParent = operatorParent;
     channels = new List<Channel>();
     clipStateChangedHandler = new Clip.EventHandler(this.clip_StateChanged);
     channelStateChangedHandler = new Channel.EventHandler(this.channel_StateChanged);
 }
Ejemplo n.º 2
0
        public void UnsubscribeEventPublish(Type type, Channel.EventHandler handler)
        {
            if (!this.evtPub.ContainsKey(type))
            {
                return;
            }

            this.evtPub[type].Remove(handler);
        }
Ejemplo n.º 3
0
        public void SubscribeEventPublish(Type type, Channel.EventHandler handler)
        {
            if (!this.evtPub.ContainsKey(type))
            {
                this.evtPub[type] = new List <Channel.EventHandler>();
            }

            this.evtPub[type].Add(handler);
        }