diff --git a/Plane.FormationCreator/App.xaml.cs b/Plane.FormationCreator/App.xaml.cs index c231ce8..0e5bc3a 100644 --- a/Plane.FormationCreator/App.xaml.cs +++ b/Plane.FormationCreator/App.xaml.cs @@ -127,7 +127,10 @@ namespace Plane.FormationCreator UdpServerConnectionManager.Instance.ConnectionEstablished += ConnectionManager_ConnectionEstablished; UdpServerConnectionManager.Instance.StartReceiving(); } - + private void Copter_TextReceived(object sender, MessageCreatedEventArgs e) + { + _logger.Log(e.Message ); + } private async Task AddOrUpdateCopter(string ip, IConnection Connection) { var copters = _copterManager.Copters; @@ -145,7 +148,10 @@ namespace Plane.FormationCreator }; int _index; _index=copters.AddCopter(copter); - copterStatus.Insert(_index,false); + copterStatus.Insert(_index,false); + + copter.TextReceived += Copter_TextReceived; + })); } else