private async void ListenForIncomingMessage() { try { int message = await GetMessage(); // Add to chat //UpdateChatBox(message, true); mflightbox.throttle(message); throttleText.Text = "Throttle: "+message; // Start listening for the next message. ListenForIncomingMessage(); } catch (Exception) { //UpdateChatBox(AppResources.Msg_ChatEnded, true); } }
private void throttleSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { mflightbox.throttle((float)e.NewValue); }