/// <summary> /// Handle the btnEcho_Click event by sending text to the echo server /// and outputting the response /// </summary> private async void ShutDown_Tapped(object sender, TappedRoutedEventArgs e) { bool result = await _controlProtocol.ProcessCommand("Bye"); }
private async void VideosLB_SelectionChanged(object sender, SelectionChangedEventArgs e) { string item = (string)this.VideosLB.SelectedItem; bool result = await _controlProtocol.ProcessCommand("PlayMPC:#" + item); }