示例#1
0
        public override void Load()
        {
            _directoryBrowser = new DirectoryBrowser(SceneManager, this);
            _directoryBrowser.AddFileSystem(new LocalFileSystem(SceneManager.Directories));
            _directoryBrowser.AddFileSystem(new SoundCloudFileSystem());

            // Find recent songs file path
            _recentSongsFile = ServiceLocator.Directories.Locate("AppData", RECENT_SONGS_FILE);

            // Load recent songs
            LoadRecentSongs();

            // Make sure to add recent file system last!
            _directoryBrowser.AddFileSystem(new RecentFileSystem(_recentSongs));

            _directoryBrowser.SwitchCurrentFileSystemIfEmpty();

            _directoryBrowser.Resize(WindowWidth, WindowHeight);
            Loaded = true;
        }
示例#2
0
 public override void Resize(EventArgs e)
 {
     _directoryBrowser.Resize(WindowWidth, WindowHeight);
 }