private void StateChanged(VideoDemonstrationController.VideoState state) { _currentState = state; switch(_currentState) { case VideoDemonstrationController.VideoState.paused: case VideoDemonstrationController.VideoState.stoped: _buttonLabel.text = PlayLabel; break; case VideoDemonstrationController.VideoState.played: _buttonLabel.text = PauseLabel; break; } }
private void StateChanged(VideoDemonstrationController.VideoState state) { _currentState = state; switch (_currentState) { case VideoDemonstrationController.VideoState.paused: case VideoDemonstrationController.VideoState.stoped: _buttonLabel.text = PlayLabel; break; case VideoDemonstrationController.VideoState.played: _buttonLabel.text = PauseLabel; break; } }