/// <summary> /// Initializes a new instance of the GamePresenter. /// </summary> public GamePresenter() { //Subscribes on Ctrl+C event Console.CancelKeyPress += (s, e) => { e.Cancel = true; PauseRequested?.Invoke(); }; }
public void Pause() { PauseRequested?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Calls <see cref="PauseRequested"/> event. /// </summary> public void RequestPause() { this.Trace(); PauseRequested?.Invoke(); }
public void Pause() { IsPlaying = false; PauseRequested?.Invoke(this, EventArgs.Empty); }
public void Pause() { Toast("Paused"); PauseRequested?.Invoke(this, EventArgs.Empty); }