private void droneControl_ConnectionStateChanged_Sync(object sender, DroneConnectionStateChangedEventArgs e) { HandleConnectionStateChange(e); }
private void HandleConnectionStateChange(DroneConnectionStateChangedEventArgs args) { UpdateInteractiveElements(); if (args.Connected) { timerVideoUpdate.Start(); UpdateUISync("Connected to the drone"); } else { UpdateUISync("Disconnected from the drone"); } }
private void droneControl_ConnectionStateChanged_Async(object sender, DroneConnectionStateChangedEventArgs e) { this.BeginInvoke(new DroneConnectionStateChangedEventHandler(droneControl_ConnectionStateChanged_Sync), sender, e); }
private void droneControl_ConnectionStateChanged_Async(object sender, DroneConnectionStateChangedEventArgs e) { //int x; UpdateUIAsync("Prisijungti pavyko"); //Dispatcher.BeginInvoke(new DroneConnectionStateChangedEventHandler(droneControl_ConnectionStateChanged_Sync), sender, e); }
private void HandleConnectionStateChange(DroneConnectionStateChangedEventArgs args) { UpdateInteractiveElements(); if (args.Connected) UpdateUISync("Connected to the drone"); else UpdateUISync("Disconnected from the drone"); }
private void InvokeNetworkConnectionStateChange(DroneConnectionStateChangedEventArgs e) { if (NetworkConnectionStateChanged != null) NetworkConnectionStateChanged.Invoke(this, e); }
private void networkWorker_ConnectionStateChanged(object sender, DroneConnectionStateChangedEventArgs e) { InvokeConnectionStateChange(); }
//EVENT HANDLER private void droneControl_ConnectionStateChanged( object sender, DroneConnectionStateChangedEventArgs e ) { if( e.Connected ) { Logger.Instance.NewEntry( CKLogLevel.Info, CKTraitTags.ARDrone, "ARDrone is connected" ); } else { Logger.Instance.NewEntry( CKLogLevel.Info, CKTraitTags.ARDrone, "ARDrone is disconnected" ); } if ( this.ConnectionStateChanged != null ) { ConnectionStateChanged( sender, e.Connected ); } }