private void StartStopRunning(bool shouldPause)
 {
     if (shouldPause)
     {
         _isRunning = false;
         _layer.Pause();
         Device.BeginInvokeOnMainThread(() => { StartStopButton.Text = "Start"; });
         StartStopButton.BackgroundColor = Color.Green;
     }
     else
     {
         _isRunning = true;
         _layer.Resume();
         Device.BeginInvokeOnMainThread(() => { StartStopButton.Text = "Stop"; });
         StartStopButton.BackgroundColor = Color.Red;
     }
 }
예제 #2
0
 private void LengthSlider_DragStarted(object sender, EventArgs e)
 {
     _layer.Pause();
 }