private void tcpClient_DataReceived(object sender, StringEventArgs e) { List<Message> msgs = MessageParser.Parse(e.Data); foreach (Message msg in msgs) { //Debug.WriteLine(msg.ToString()); foreach (Manager manager in managers) if (manager.ProcessMessage(msg)) break; } }
private void tcpClient_Log(object sender, StringEventArgs e) { if (Log != null) Log(this, e); }
private void EcosModel_Log(object sender, StringEventArgs e) { MessageBox.Show(e.Data, App.Name, MessageBoxButton.OK); }