private void voipclient_OnAddChannel(int nChannelID) { string strChannelName = m_voipclient.GetChannelName(nChannelID); if (!_aChannels.ContainsKey(strChannelName)) { _aChannels.Add(strChannelName, nChannelID); logDebugOnly(String.Format("_aChannels.Add({0}:{1})\n", strChannelName, Convert.ToInt32(nChannelID).ToString())); } logDebugOnly(String.Format("Conaito OnAddChannel event received for channel {0}, ID={1}\n", strChannelName, nChannelID)); if (_aChannelAuthorizations.ContainsKey(strChannelName)) { bool bAuthorized = _aChannelAuthorizations[strChannelName]; if (bAuthorized) { AddChannel(nChannelID); } } else { logDebugOnly(String.Format("{0} not authorized to view channel {1}\n", _strDM, strChannelName)); } }