Skip to content

Instantly share code, notes, and snippets.

@SenpaiSilver
Last active August 29, 2015 14:12
Show Gist options
  • Save SenpaiSilver/d8eb0ffad7ea31c8e06b to your computer and use it in GitHub Desktop.
Save SenpaiSilver/d8eb0ffad7ea31c8e06b to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
namespace PlayList
{
[Serializable]
public class PlayList: System.Windows.Controls.ListBox
{
private Dictionary<String, Uri> _files;
public void Add(Uri path)
{
if (this._files == null)
this._files = new Dictionary<string,Uri>();
this._files[path.Segments[path.Segments.Length - 1] + this.Items.Count] = path;
this.Items.Add(path.Segments[path.Segments.Length - 1]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment