Example #1
0
 private void InvokeNetworkConnectionStateChange(DroneConnectionStateChangedEventArgs e)
 {
     if (NetworkConnectionStateChanged != null)
     {
         NetworkConnectionStateChanged.Invoke(this, e);
     }
 }
Example #2
0
        private void HandleConnectionStateChange(DroneConnectionStateChangedEventArgs args)
        {
            UpdateInteractiveElements();

            if (args.Connected)
            {
                UpdateUISync("Connected to the drone");
            }
            else
            {
                UpdateUISync("Disconnected from the drone");
            }
        }
Example #3
0
 private void droneControl_ConnectionStateChanged_Sync(object sender, DroneConnectionStateChangedEventArgs e)
 {
     // HandleConnectionStateChange(e);
 }
Example #4
0
 private void droneControl_ConnectionStateChanged_Async(object sender, DroneConnectionStateChangedEventArgs e)
 {
     //this.BeginInvoke(new DroneConnectionStateChangedEventHandler(droneControl_ConnectionStateChanged_Sync), sender, e);
 }
Example #5
0
 private void networkWorker_ConnectionStateChanged(object sender, DroneConnectionStateChangedEventArgs e)
 {
     InvokeConnectionStateChange();
 }