public void PauseAsync() { switch (State) { case PlayerState.Playing: player.Pause(); return; default: // do nothing return; } }