Example #1
0
        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);

            }
        }
Example #2
0
 private void throttleSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     mflightbox.throttle((float)e.NewValue);
 }