コード例 #1
0
ファイル: Timeline.cs プロジェクト: olofn/db_public
 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);
 }
コード例 #2
0
        public void UnsubscribeEventPublish(Type type, Channel.EventHandler handler)
        {
            if (!this.evtPub.ContainsKey(type))
            {
                return;
            }

            this.evtPub[type].Remove(handler);
        }
コード例 #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);
        }