Пример #1
0
 private void SetLaunch(byte position, byte speed)
 {
     if (VideoPlayer.IsPlaying)
     {
         _launch?.EnqueuePosition(position, speed);
         _connector?.SetPosition(position, speed);
     }
 }
Пример #2
0
 private void btnMeasureSpeed_Click(object sender, RoutedEventArgs e)
 {
     if (_launch == null)
     {
         return;
     }
     for (int i = 0; i < 10; i++)
     {
         _launch.EnqueuePosition((byte)(i % 2 == 0?20:70), 50);
     }
 }