コード例 #1
0
ファイル: WmEAnp.cs プロジェクト: tmbx/kwm-ng
        /// <summary>
        /// Called when a channel has been opened.
        /// </summary>
        public static void HandleChannelOpen(Object sender, EAnpChannelOpenEventArgs args)
        {
            EAnpChannel c = args.Channel;
            if (!c.IsOpen()) return;

            // Register the channel.
            c.OnClose += HandleChannelClose;
            WmEAnpChannel wc = new WmEAnpChannel(c);
            m_channelTree[c] = wc;
        }
コード例 #2
0
ファイル: WmEAnp.cs プロジェクト: tmbx/kwm-ng
        /// <summary>
        /// Called when a channel has been opened.
        /// </summary>
        public static void HandleChannelOpen(Object sender, EAnpChannelOpenEventArgs args)
        {
            EAnpChannel c = args.Channel;

            if (!c.IsOpen())
            {
                return;
            }

            // Register the channel.
            c.OnClose += HandleChannelClose;
            WmEAnpChannel wc = new WmEAnpChannel(c);

            m_channelTree[c] = wc;
        }
コード例 #3
0
ファイル: WmEAnp.cs プロジェクト: tmbx/kwm-ng
 /// <summary>
 /// Return an array of open channels.
 /// </summary>
 private static WmEAnpChannel[] GetChannelArray()
 {
     WmEAnpChannel[] a = new WmEAnpChannel[m_channelTree.Values.Count];
     m_channelTree.Values.CopyTo(a, 0);
     return(a);
 }
コード例 #4
0
ファイル: WmEAnp.cs プロジェクト: tmbx/kwm-ng
 /// <summary>
 /// Return an array of open channels.
 /// </summary>
 private static WmEAnpChannel[] GetChannelArray()
 {
     WmEAnpChannel[] a = new WmEAnpChannel[m_channelTree.Values.Count];
     m_channelTree.Values.CopyTo(a, 0);
     return a;
 }