Exemplo n.º 1
0
        private void LoadPromptOnTextEntered(object?sender, string filename)
        {
            var musicFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            var totalName   = Path.Combine(musicFolder, filename + ".xml");
            var access      = new XmlLibraryAccess();
            var io          = new LibraryIO(totalName, access, access);

            jukeControl.LoadHandler.LoadSongs(io);
            Invalidate(true);
        }
Exemplo n.º 2
0
        private void SaveFileSelected(object?sender, string filename)
        {
            var musicFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            var totalName = Path.Combine(musicFolder, filename + ".xml");
            var access    = new XmlLibraryAccess();
            var io        = new LibraryIO(totalName, access, access);

            jukeControl.SaveLibrary(io);
            Messenger.Post("Library saved to " + totalName);
            Invalidate(true);
        }