private void invokeChatBox(chatbox box, List <TempMessage> messages) { if (messages.Count > 0) { box.Invoke(box.addMessage, messages); } }
private void invokeOneMessageToChatBox(chatbox box, TempMessage message) { if (message != null) { box.Invoke(box.addOneMessage, message); } }