Exemple #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();
        }
Exemple #2
0
 private void _UpdateChatterList()
 {
     if (ChattersBulletedList.Items.Count != m_chat.Chatters.Count)
     {
         ChattersBulletedList.DataSource    = m_chat.Chatters;
         ChattersBulletedList.DataTextField = "Name";
         ChattersBulletedList.DataBind();
     }
 }
 private void _UpdateChatterList()
 {
     ChattersBulletedList.DataSource    = m_chat.Chatters;
     ChattersBulletedList.DataTextField = "Name";
     ChattersBulletedList.DataBind();
 }