void MainVm_sendTextToApm(object sender, sendTextToApmEventArgs e) { if (sender.Equals(_selectedVm) == false) { Console.WriteLine("Non selected vm wants to send something to the APM"); return; } if (_comms.IsConnected) { _comms.Send(e.textToSend); } }