private void Player_MediaEnded(object player, EventArgs args) { MediaEnded.IfNotNull(i => i(this, null)); }
private void MediaElement_MediaEnded(object sender, RoutedEventArgs e) { MediaEnded.IfNotNull(i => i(this)); }