Esempio n. 1
0
 /// <summary>
 /// Returns the CopyDataChannel at the specified 0-based index.
 /// </summary>
 public CopyDataChannel this[int index] {
     get {
         CopyDataChannel ret = null;
         int             i   = 0;
         foreach (CopyDataChannel cdc in Dictionary.Values)
         {
             i++;
             if (i == index)
             {
                 ret = cdc;
                 break;
             }
         }
         return(ret);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a new channel on which this application can send and
 /// receive messages.
 /// </summary>
 public void Add(string channelName)
 {
     CopyDataChannel cdc = new CopyDataChannel(owner, channelName);
     this.Dictionary.Add(channelName , cdc);
 }
Esempio n. 3
0
        /// <summary>
        /// Adds a new channel on which this application can send and
        /// receive messages.
        /// </summary>
        public void Add(string channelName)
        {
            CopyDataChannel cdc = new CopyDataChannel(_owner, channelName);

            Dictionary.Add(channelName, cdc);
        }