private void OnPlayerStateChanged(object sender, PlayerStateArgs args) { switch (args.State) { case PlayerStateType.None: break; case PlayerStateType.Browsing: this.SetPlayerState("Browsing"); this.SetOperation(true); this.ShowOperationParent(false); this.ShowStatus(false); break; case PlayerStateType.Watching: this.SetPlayerState("Watching"); this.SetOperation(false); this.ShowOperationParent(true); this.ShowStatus(true); break; case PlayerStateType.Playing: this.SetPlayerState("Playing"); this.SetOperation(true); this.ShowOperationParent(true); this.ShowStatus(true); break; } }
private void OnPlayerStateChanged(object sender, PlayerStateArgs args) { this.SetPullDownList(args.State); }