Пример #1
0
 private void AVL_Instance_OnUpdateMessages(AVL_Instance sender, AVLEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke((MethodInvoker) delegate { AVL_Instance_OnUpdateMessages(sender, e); });
     }
     else
     {
         //if the AVL_Instance's airplane is our airplane
         if (sender.AVL_aircraft == m_ap)
         {
             //if this is a geom pict update
             // if (e.DataSource == AVLEventArgs.AVLData_Source.Geometry_Pict)
             //this.pictureBox1.Image = ((AVL_PictureEventArgs)e).Img;
         }
     }
 }
Пример #2
0
 private void AVL_Instance_OnUpdateMessages(AVL_Instance sender, AVLEventArgs e)
 {
     if (this.InvokeRequired)
         this.Invoke((MethodInvoker)delegate { AVL_Instance_OnUpdateMessages(sender, e); });
     else
     {
         //if the AVL_Instance's airplane is our airplane
         if (sender.AVL_aircraft == m_ap)
         {
             //if this is a geom pict update
             // if (e.DataSource == AVLEventArgs.AVLData_Source.Geometry_Pict)
             //this.pictureBox1.Image = ((AVL_PictureEventArgs)e).Img;
         }
     }
 }