Exemplo n.º 1
0
        public void AddUser(int nUserID, int nChannelID)
        {
            TreeNode node = GetChannelNode(voipclient.GetUserChannelID(nUserID));

            if (node != null)
            {
                int      iImageIndex = voiceactCheckBox.Checked ? ( int )ImageIndex.USER_TALKING : ( int )ImageIndex.USER_NOT_TALKING;
                TreeNode newnode     = new TreeNode(voipclient.GetUserNickName(nUserID), iImageIndex, iImageIndex, new TreeNode[0]);
                newnode.Tag = nUserID;
                node.Nodes.Add(newnode);
            }
        }
Exemplo n.º 2
0
        public void AddUser(int nUserID, int nChannelID)
        {
            //if ( m_iUserId == nUserID )
            //{
            TreeNode node = GetChannelNode(m_voipclient.GetUserChannelID(nUserID));

            if (node != null)
            {
                int      iImageIndex = ( int )ImageIndex.USER_NOT_TALKING;
                TreeNode newnode     = new TreeNode(m_voipclient.GetUserNickName(nUserID), iImageIndex, iImageIndex, new TreeNode[0]);
                newnode.Tag = nUserID;
                node.Nodes.Add(newnode);
                node.Expand();
            }
            //}
        }