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