private void SetPlayMessage(PlayMessageInfo playMessage) { _playMessage = playMessage; SetControlerState(false, true); ShareUtils.ShareInfo = _playMessage.ShareInfo; xChannelTitleTextBlock.Text = playMessage.Title; xPlayerControler.SetProgramButtonState(playMessage.HasPreProgram, playMessage.HasNextProgram); xPlayerControler.InitBitrates(playMessage.PlayInfos); if (playMessage.CurrentPlayInfo != null) { xPlayerControler.InitCurrentFileType((PlayFileType)playMessage.CurrentPlayInfo.ft); } }
protected void InitInformation() { _beginTime = DateTime.Now; _dacPlayInfo = new DACPlayInfo(); _playMessage = new PlayMessageInfo(); }
void SetPlayMessage(PlayMessageInfo playMessage) { _playMessage = playMessage; titleText.Text = playMessage.Title; }