Ejemplo n.º 1
0
 /// <summary>Raises the ChatSessionMemberLeft event</summary>
 /// <param name="e">A ChatSessionMemberLeftEventArgs object containing the
 /// data returned from the data server</param>
 protected virtual void OnChatSessionMemberLeft(ChatSessionMemberLeftEventArgs e)
 {
     EventHandler<ChatSessionMemberLeftEventArgs> handler = m_ChatSessionMemberLeft;
     if (handler != null)
         handler(this, e);
 }
Ejemplo n.º 2
0
 void Self_ChatSessionMemberLeft(object sender, ChatSessionMemberLeftEventArgs e)
 {
     if (e.SessionID == session)
         UpdateParticipantList();
 }
Ejemplo n.º 3
0
        private void Self_OnChatSessionMemberLeft(object sender, ChatSessionMemberLeftEventArgs e)
        {
            if (e.SessionID == session)
            {
                BeginInvoke(new MethodInvoker(delegate()
                {
                    try
                    {
                        ListViewItem foundItem = lvwList.FindItemWithText(e.AgentID.ToString());

                        if (foundItem != null)
                        {
                            lvwList.Items.Remove(foundItem);
                        }
                    }
                    catch { ; }

                    try
                    {
                        if (people.ContainsKey(e.AgentID))
                        {
                            lock (people)
                            {
                                string person = people[e.AgentID];
                                ListViewItem foundItem2 = lvwList.FindItemWithText(person);

                                if (foundItem2 != null)
                                {
                                    lvwList.Items.Remove(foundItem2);
                                }

                                people.Remove(e.AgentID);
                            }
                        }
                    }
                    catch { ; }
                }));
            }
        }
        void Self_ChatSessionMemberLeft(object sender, ChatSessionMemberLeftEventArgs e)
        {
            if(session!=e.SessionID)
            return;
            Gtk.Application.Invoke(delegate{
                lock(store)
                {
                    store.Foreach(delegate(Gtk.TreeModel mod, Gtk.TreePath path, Gtk.TreeIter iter)
                    {
                        UUID id=((ChatSessionMember)store.GetValue(iter,1)).AvatarKey;
             				        if(id==e.AgentID)
                        {

                            Gtk.Application.Invoke(delegate
                            {
                                store.Remove(ref iter);
                            });
                            return true;
                        }

                        return false;
                    });
                }
            });
        }
Ejemplo n.º 5
0
 public virtual void Self_OnChatSessionMemberLeft(object sender, ChatSessionMemberLeftEventArgs e) { OnEvent("On-Chat-Session-Member-Left", paramNamesOnChatSessionMemberLeft, paramTypesOnChatSessionMemberLeft, e); }