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