Exemple #1
0
        public void RemoveChannel(Channel channel)
        {
            if (!channelMap.ContainsKey(channel))
            {
                return;
            }

            ChannelListItem     item = channelMap[channel];
            ChannelListItemFlow flow = getFlowForChannel(channel);

            channelMap.Remove(channel);
            flow.Remove(item);
        }
Exemple #2
0
        public void RemoveChannel(Channel channel)
        {
            if (!channelMap.ContainsKey(channel))
            {
                return;
            }

            ChannelListItem item = channelMap[channel];
            FillFlowContainer <ChannelListItem> flow = getFlowForChannel(channel);

            channelMap.Remove(channel);
            flow.Remove(item);

            updateVisibility();
        }
Exemple #3
0
        public void AddChannel(Channel channel)
        {
            if (channelMap.ContainsKey(channel))
            {
                return;
            }

            ChannelListItem item = new ChannelListItem(channel);

            item.OnRequestSelect          += chan => OnRequestSelect?.Invoke(chan);
            item.OnRequestLeave           += chan => OnRequestLeave?.Invoke(chan);
            item.SelectorActive.BindTarget = SelectorActive;

            ChannelListItemFlow flow = getFlowForChannel(channel);

            channelMap.Add(channel, item);
            flow.Add(item);
        }
Exemple #4
0
        public void AddChannel(Channel channel)
        {
            if (channelMap.ContainsKey(channel))
            {
                return;
            }

            ChannelListItem item = new ChannelListItem(channel);

            item.OnRequestSelect += chan => OnRequestSelect?.Invoke(chan);
            item.OnRequestLeave  += chan => OnRequestLeave?.Invoke(chan);

            FillFlowContainer <ChannelListItem> flow = getFlowForChannel(channel);

            channelMap.Add(channel, item);
            flow.Add(item);

            updateVisibility();
        }