private void Drone_OnInfoChange(object sender, InfoChangedEventArgs eventArgs) { if (InvokeRequired) { Invoke(new EventHandler <InfoChangedEventArgs>(Drone_OnInfoChange), this, eventArgs); return; } UpdateInfo(eventArgs.Info); }
private void Drone_OnInfoChange(object sender, InfoChangedEventArgs e) { info = e.Info; UpdateValues(); }