private static void CallDroneControllConnect()
 {
     try
     {
         _droneController.Connect();
     }
     catch
     {
         MessageBox.Show(
             "Could not connect to AR Drone. Please verify you are connected to drone's WIFI and that you are the only device connected. Restart the Drone if necessary.",
             "Unable to connect.", MessageBoxButton.OK);
     }
 }
 private void Connect_OnClick(object sender, RoutedEventArgs routedEventArgs)
 {
     if (DroneController.Connected)
     {
         DroneController.Disconnect();
     }
     else
     {
         try
         {
             DroneController.Connect();
         }
         catch
         {
             var dialog =
                 new MessageDialog(
                     "Could not connect to AR Drone. Please verify you are connected to the drone's WIFI and that you are the only device connected. If necessary, restart the drone.",
                     "Unable to connect.");
             dialog.ShowAsync();
         }
     }
 }