コード例 #1
0
        /// <summary>
        /// Create new shell library instance
        /// </summary>
        /// <param name="locationPath">Where to create</param>
        /// <param name="name">the name of the library without the .library-ms</param>
        public void CreateShellLibrary(string locationPath, string name)
        {
            using (ShellLibrary shellLibrary = ShellLibrary.Create(name, locationPath))
            {
                LibraryName = shellLibrary.FullName;
            }

            DefaultSaveFolder = string.Empty;
            FolderList.Clear();
            ShellIcon = null;
            ListenToShellLibraryChange();
        }
コード例 #2
0
ファイル: ShellCommands.cs プロジェクト: mehome/cs
 public static void CreateLibrary(string name)
 {
     using (ShellLibrary library = ShellLibrary.Create(name, true))
     {
     }
 }