예제 #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 this.Dictionary.Values)
         {
             i++;
             if (i == index)
             {
                 ret = cdc;
                 break;
             }
         }
         return(ret);
     }
 }
예제 #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);
    }
예제 #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);
     this.Dictionary.Add(channelName , cdc);
 }