コード例 #1
0
ファイル: CopyData.cs プロジェクト: zhk/greenshot
 /// <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);
     }
 }
コード例 #2
0
ファイル: CopyData.cs プロジェクト: eservicepartner/espUrl
 /// <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
ファイル: CopyData.cs プロジェクト: zhk/greenshot
        /// <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);
        }