public void selectVideo(object sender, RoutedEventArgs e) { var button = (Button)sender; var video = ((Video)button.Tag); foreach (Video v in Playlist.Videos) { if (v.Active) { //Saves last position to be resumed from there v.StartPosition = v.PositionProgress; } v.Active = false; } video.Active = true; e.Source = video; SelectedVideo.Invoke(sender, e); }
/// <summary> /// Parses the specified filename /// </summary> /// <param name="filename">Filename to parse</param> public void ParseFilename(String filename) { SelectedVideo.ParseFilename(filename); }