示例#1
0
        private void Drone_OnInfoChange(object sender, InfoChangedEventArgs eventArgs)
        {
            if (InvokeRequired)
            {
                Invoke(new EventHandler<InfoChangedEventArgs>(Drone_OnInfoChange), this, eventArgs);
                return;
            }

            UpdateInfo(eventArgs.Info);
        }
示例#2
0
 private void Drone_OnInfoChange(object sender, InfoChangedEventArgs e)
 {
     info = e.Info;
     UpdateValues();
 }