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); }
public void UnsubscribeEventPublish(Type type, Channel.EventHandler handler) { if (!this.evtPub.ContainsKey(type)) { return; } this.evtPub[type].Remove(handler); }
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); }