public void AddRange(ChannelCollection values)
 {
     foreach (IChannel chnl in values)
     {
         InnerList.Add(chnl);
     }
 }
 /// <summary>
 /// ���캯��
 /// </summary>
 /// <param name="workItem">�������</param>
 public AbstractCTIDriver(WorkItem workItem)
 {
     this.workItem = workItem;
     this.logger = this.workItem.Services.Get<ILog>();
     channels = null;
     confGroups = new Dictionary<int, List<int>>();
 }
 public void AddRange(ChannelCollection values)
 {
     foreach (IChannel chnl in values)
     {
         InnerList.Add(chnl);
     }
 }
Beispiel #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="workItem">组件容器</param>
 public AbstractCTIDriver(WorkItem workItem)
 {
     this.workItem = workItem;
     this.logger   = this.workItem.Services.Get <ILog>();
     channels      = null;
     confGroups    = new Dictionary <int, List <int> >();
 }
Beispiel #5
0
 /// <summary>
 /// 初始化板卡上的通道等信息
 /// </summary>
 private void CreateChannels()
 {
     if (channels == null)
     {
         lock (syncObj)
         {
             if (channels == null)
             {
                 channels = new ChannelCollection();
                 Initialize();
             }
         }
     }
 }
 public ChannelCollection(ChannelCollection channels)
 {
     this.AddRange(channels);
 }
 /// <summary>
 /// ��ʼ���忨�ϵ�ͨ������Ϣ
 /// </summary>
 private void CreateChannels()
 {
     if (channels == null)
     {
         lock (syncObj)
         {
             if (channels == null)
             {
                 channels = new ChannelCollection();
                 Initialize();
             }
         }
     }
 }
 public ChannelCollection(ChannelCollection channels)
 {
     this.AddRange(channels);
 }