private void AddMessage(string line) { BLL_Chat bll_chat = new BLL_Chat(); int pos = line.IndexOf("> "); string user = line.Substring(1, pos - 1); string message = line.Substring(pos + 2, line.Length - user.Length - 3); bll_chat.InsertChat(user, message); //MessageList.Insert(0, new ServerUser(DateTime.Now, user, message)); }