private void Ball_MonitoringChanged(object sender, MonitoringArgs e)
 {
     if(e.valor) //Important to avoid recursivity
     {
         if(monitoredBall != null)
         {
             if(monitoredBall != (Ball)sender)
                 monitoredBall.Monitoring = false;
         }
         monitoredBall = (Ball)sender;
     }
 }
Example #2
0
 private void Ball_MonitoringChanged(object sender, MonitoringArgs e)
 {
     if (e.valor)            //Important to avoid recursivity
     {
         if (monitoredBall != null)
         {
             if (monitoredBall != (Ball)sender)
             {
                 monitoredBall.Monitoring = false;
             }
         }
         monitoredBall = (Ball)sender;
     }
 }
Example #3
0
 private void Catcher_MonitoringChanged(object sender, MonitoringArgs e)
 {
     if (e.valor) //Important to avoid recursivity
     {
         if (monitoredCatcher != null)
         {
             if (monitoredCatcher != (Catcher)sender)
             {
                 monitoredCatcher.Monitoring = false;
             }
         }
         monitoredCatcher = (Catcher)sender;
     }
 }
 private void Catcher_MonitoringChanged(object sender, MonitoringArgs e)
 {
     if (e.valor) //Important to avoid recursivity
     {
         if(monitoredCatcher != null)
         {
             if(monitoredCatcher != (Catcher)sender)
                 monitoredCatcher.Monitoring = false;
         }
         monitoredCatcher = (Catcher)sender;
     }
 }