Beispiel #1
0
        public static void loadTagsFromRegistry()
        {
            RegistryKey key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Newrose\Samplify");

            if (key != null)
            {
                object dirs = NewroseLib.loadObjectFromRegistry(key, "AllTags");
                allTags.AddRange(dirs as Tag[]);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Loads in directory information from registry
        /// </summary>
        public static void loadDirectoriesFromRegistry()
        {
            RegistryKey key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Newrose\Samplify");

            if (key != null)
            {
                object dirs = NewroseLib.loadObjectFromRegistry(key, "Directories");
                directories.AddRange(dirs as string[]);
            }
            if (directories.Count == 0)
            {
                string dir = NewroseLib.userSelectDirectoryDialog();
                if (dir != null)
                {
                    directories.Add(dir);
                }
            }
        }