Exemplo n.º 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);
        }
Exemplo n.º 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();
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }