Example #1
0
 public void Stop()
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Example #2
0
 private void OnStopRequested()
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
 /// <summary>
 /// Calls <see cref="StopRequested"/> event.
 /// </summary>
 protected void RequestStop()
 {
     StopRequested?.Invoke();
 }
 /// <summary>
 /// Call when you would like this service instance to stop.
 /// </summary>
 protected void StopServiceAsync()
 {
     _cancellationTokenSource.Cancel();
     Task.Run(() => StopRequested?.Invoke(this, new EventArgs()));
 }
Example #5
0
 protected virtual void OnStopRequested()
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Example #6
0
 private void StopItem_Click(object sender, RoutedEventArgs e)
 {
     StopRequested?.Invoke(this, e);
 }
Example #7
0
 public void Stop()
 {
     IsPlaying = false;
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Example #8
0
 private void LblStop_Click(object sender, EventArgs e)
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Example #9
0
 public void Stop()
 {
     Toast("Stopped");
     StopRequested?.Invoke(this, EventArgs.Empty);
 }