コード例 #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;
            }
        }
コード例 #2
0
ファイル: ShellCommands.cs プロジェクト: mehome/cs
 public static void DeleteLibrary(string name)
 {
     ShellLibrary.Delete(ShellLibrary.CreateLibraryFullName(name));
 }