Beispiel #1
0
 public void Stop()
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Beispiel #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()));
 }
Beispiel #5
0
 protected virtual void OnStopRequested()
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Beispiel #6
0
 private void StopItem_Click(object sender, RoutedEventArgs e)
 {
     StopRequested?.Invoke(this, e);
 }
Beispiel #7
0
 public void Stop()
 {
     IsPlaying = false;
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Beispiel #8
0
 private void LblStop_Click(object sender, EventArgs e)
 {
     StopRequested?.Invoke(this, EventArgs.Empty);
 }
Beispiel #9
0
 public void Stop()
 {
     Toast("Stopped");
     StopRequested?.Invoke(this, EventArgs.Empty);
 }