Ejemplo n.º 1
0
        // People in Chatroom
        private void _UpdateChatterList()
        {
            List <string> chatters = new List <string>();

            foreach (Chatter chatter in m_chat.Chatters)
            {
                if (!chatter.Name.Equals(m_chatter.Name))
                {
                    chatters.Add(chatter.Name);
                }

                /*if (!chatter.Name.Equals(m_chatter.Name)) {
                 *  if (m_chatter.buddyList.Contains(chatter.intId)) {
                 *      chatters.Add(chatter.Name);
                 *      if (!m_chatter.myBuddies.Contains(chatter))
                 *          m_chatter.myBuddies.Add(chatter);
                 *  }
                 * }*/
            }



            ChattersBulletedList.DataSource = chatters.DefaultIfEmpty("You're alone here!");
            ChattersBulletedList.DataBind();
        }
Ejemplo n.º 2
0
        // People in Chatroom
        private void _UpdateChatterList()
        {
            List<string> chatters = new List<string>();
            foreach (Chatter chatter in m_chat.Chatters) {
                if (!chatter.Name.Equals(m_chatter.Name))
                    chatters.Add(chatter.Name);
                /*if (!chatter.Name.Equals(m_chatter.Name)) {
                    if (m_chatter.buddyList.Contains(chatter.intId)) {
                        chatters.Add(chatter.Name);
                        if (!m_chatter.myBuddies.Contains(chatter))
                            m_chatter.myBuddies.Add(chatter);
                    }
                }*/
            }

            ChattersBulletedList.DataSource = chatters.DefaultIfEmpty("You're alone here!");
            ChattersBulletedList.DataBind();
        }