private void SetActiveFile() { if (string.IsNullOrEmpty(Media.FilePath)) { return; } if (Player.State != PlayerState.Playing) { return; } if (m_Form.CurrentItem != null && m_Form.CurrentItem.FilePath != Media.FilePath) { m_Form.ActiveFile(Media.FilePath); } else if (m_Form.CurrentItem == null) { m_Form.ActiveFile(Media.FilePath); } }
private void SetActiveFile() { if (PlayerControl.PlayerState != PlayerState.Playing || form.Playlist.Count > 1) { return; } if (string.IsNullOrEmpty(PlayerControl.MediaFilePath)) { return; } if (form.CurrentItem != null && form.CurrentItem.FilePath != PlayerControl.MediaFilePath) { form.ActiveFile(PlayerControl.MediaFilePath); } else if (form.CurrentItem == null) { form.ActiveFile(PlayerControl.MediaFilePath); } }