1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
// Initialisation
Dictionary<string, List<string>> file_types = new Dictionary<string, List<string>>();
List<string> lst = new List<string>();
lst.AddRange(new string[] { "mkv", "avi", "mpg", "mpeg", "wmv", "divx", "mov", "ts", "mp4"});
file_types.Add("Video", lst);
lst = new List<string>();
lst.AddRange(new string[] { "mp3", "flac", "wma", "ogg", "mpc", "wav"});
file_types.Add("Sound", lst);
lst = new List<string>();
lst.AddRange(new string[] { "jpg", "jpeg", "png", "bmp", "gif", "tiff"});
file_types.Add("Image", lst);
lst = new List<string>();
lst.AddRange(new string[] { "srt", "sub", "ssa"});
file_types.Add("Subtitles", lst); |