/***** * Control event react functions */ public void CommandPlay() { if (log) { View.Log("CommandPlay"); } if (_source == null) { return; } if (_goodPlayer != null && _goodPlayer.IsPlaying) { _shownPlayer = _goodPlayer; View.ShowGoodPlayer(); } else { _shownPlayer = _badPlayer; _badPlayer.Play(); } CheckNeedSwitch(); }
private void SwitchToGood() { if (log) { View.Log("SwitchToGood"); } //if (_goodPlayer == null) return; if (View.Height > _badH && View.Width > _badW) { if (_goodPlayer.IsPlaying) { GoodPlaying(); } else { _goodPlayer.Play(); } } }