Пример #1
0
        /// <summary>
        /// Load library from default location
        /// </summary>
        /// <returns>True if loaded successful</returns>
        public bool LoadLibrary()
        {
            XmlDatabase db = new XmlDatabase();

            if (db.Load(out IEnumerable <AudioEntry> entries))
            {
                Entries.Clear();

                foreach (AudioEntry e in entries)
                {
                    Entries.Add(e);
                }

                return(true);
            }

            return(false);
        }
Пример #2
0
        /// <summary>
        /// Save library to default location
        /// </summary>
        /// <returns>True if saved successful</returns>
        public bool SaveLibrary()
        {
            XmlDatabase db = new XmlDatabase();

            return(db.Save(Entries));
        }