//获取加群请求 private void getGroupRequest(WebServiceMessage.Messages msg) { object obj = msg.Details; DialogResult result = MessageBox.Show(string.Format("用户{0}请求加入{1}群,是否同意?", msg.Sender, msg.Details), "请求", MessageBoxButtons.YesNo, MessageBoxIcon.Information); WsMessage.HandleGroupRequst(currentUsername, result == DialogResult.Yes, msg.Sender, msg.Details);; }