private void Udpmote_UdpmoteDisconnected(UdpmoteInfo obj)
 {
     udpmoteIsConnected = false;
     Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => {
         isRecognizing                = false;
         StartStopButton.IsEnabled    = false;
         RecognizedGesture.Text       = "";
         RecognizedGesture.Background = Brushes.LightGray;
         StartStopButton.Content      = "Empezar reconocimiento";
     }));
 }
 private void Udpmote_UdpmoteConnected(UdpmoteInfo obj)
 {
     udpmoteIsConnected = true;
     Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => TryEnableStartButton()));
 }
示例#3
0
 private void Udpmote_UdpmoteDisconnected(UdpmoteInfo obj)
 {
     Dispatcher.BeginInvoke(DispatcherPriority.Normal,
                            new Action(() => TrainGestures.IsEnabled = false));
 }