private void LoadFolder()
 {
     var dialog = new System.Windows.Forms.FolderBrowserDialog();
     dialog.ShowDialog();
     switch (((Category)this.SelectedFilter.Filter).Type)
     {
         case "audio":
             MediaList<Audio> tempAudioList = new MediaList<Audio>(Properties.Settings.Default.MusicPath, this.SelectedFilter.Filter);
             this.ImageVisibility = "Hidden";
             this.MusicVisibility = "Visible";
             if (dialog.SelectedPath != "")
                 tempAudioList.loadFolder(dialog.SelectedPath);
             break;
         case "picture":
             MediaList<Image> tempImageList = new MediaList<Image>(Properties.Settings.Default.ImagePath, this.SelectedFilter.Filter);
             this.ImageVisibility = "Visible";
             this.MusicVisibility = "Hidden";
             if (dialog.SelectedPath != "")
                 tempImageList.loadFolder(dialog.SelectedPath);
             break;
     }
 }