Example #1
0
 public void GoDownDirectory()
 {
     if (!CanGoDown)
     {
         return;
     }
     directorystack.Push(new KeyValuePair <string, int>(directory, selectedindex));
     selectedindex = 0;
     directory     = songinfos[selectedindex].DirectoryPath;
     songinfos     = SongInformation.GetFromDirectory(directory);
     FireDirectoryChangeEvent();
     FireSongChangeEvent();
 }
Example #2
0
        public void GoUpDirectory()
        {
            if (!CanGoUp)
            {
                return;
            }
            KeyValuePair <string, int> pair = directorystack.Pop();

            selectedindex = pair.Value;
            directory     = pair.Key;
            songinfos     = SongInformation.GetFromDirectory(directory);
            FireDirectoryChangeEvent();
            FireSongChangeEvent();
        }