private void connection_DataReceived(object sender, StringEventArgs e)
 {
     ActiveProfile?.ProcessMessages(MessageParser.Parse(e.Data));
 }
 private void tcpClient_DataReceived(object sender, StringEventArgs e)
 {
     List<Message> msgs = MessageParser.Parse(e.Data);
     foreach (Message msg in msgs)
     {
         //System.Diagnostics.Debug.WriteLine(msg.ToString());
         foreach (Manager manager in managers)
             try
             {
                 if (manager.ProcessMessage(msg))
                     break;
             }
             catch (Exception)
             {
             }
     }
 }