Ejemplo n.º 1
0
        /// <summary>
        /// Delete the library
        /// </summary>
        public void DeleteLibrary()
        {
            ShellLibrary.Delete(LibraryName);

            try
            {
                _isIgnoreEvent = true;

                DefaultSaveFolder = string.Empty;
                LibraryName       = string.Empty;
                FolderList.Clear();
                ShellIcon = null;
                _libraryWatcher.Dispose();
                _libraryWatcher = null;
            }
            finally
            {
                _isIgnoreEvent = false;
            }
        }
Ejemplo n.º 2
0
 public static void DeleteLibrary(string name)
 {
     ShellLibrary.Delete(ShellLibrary.CreateLibraryFullName(name));
 }