public void ReadMessages(int channelId) { messages.Clear(); MessageDAO.MessageList(messages, channelId); MaxMessageId = MessageDAO.GetMaxMessageIdInChannel(channelId); }