Ejemplo n.º 1
0
        private void throttle_slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            label_slider_throttle.Content = string.Format(ConfigurationManager.AppSettings["labelThrottleFormat"], e.NewValue);

            try
            {
                GeneralVM.SetAileron(e.NewValue);
            }
            catch (ServerConnectionManager.FlightSimulatorConnectionException)
            {
                GeneralVM.Disconnected = true;
            }
        }