示例#1
0
 void client_GroupChat(object sender, GroupChatEventArgs e)
 {
     if (e.Group == this)
     {
         Chatted.SafeInvoke(this, e);
     }
 }
示例#2
0
 void client_UserChat(object sender, UserChatEventArgs e)
 {
     if (e.User == this)
     {
         Chatted.SafeInvoke(this, e);
     }
 }
示例#3
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            if (disposing)
            {
                Changed.CheckInvokeList();
                Chatted.CheckInvokeList();
                client.GroupChat -= client_GroupChat;
            }
        }