/// <summary> /// Update câu trả lời cho client /// </summary> /// <param name="client"></param> public void updateClientAnswer(MyClient client, string answer) { if (this.tbMessage.InvokeRequired) { SetClientAnswerCallback d = new SetClientAnswerCallback(updateClientAnswer); this.Invoke(d, new object[] { client, answer }); } else { for (int i = 0; i < lvClients.Items.Count; i++) { int id = (int)lvClients.Items[i].Tag; if (id == client.getId()) { lvClients.Items[i].SubItems[1].Text = answer; break; } } } }