void client_GroupChat(object sender, GroupChatEventArgs e) { if (e.Group == this) { Chatted.SafeInvoke(this, e); } }
void client_UserChat(object sender, UserChatEventArgs e) { if (e.User == this) { Chatted.SafeInvoke(this, e); } }
protected void Dispose(bool disposing) { if (disposed) { return; } disposed = true; if (disposing) { Changed.CheckInvokeList(); Chatted.CheckInvokeList(); client.GroupChat -= client_GroupChat; } }