示例#1
0
        private void importRegFile(string path)
        {
            String            RegFileName       = path;
            RegistryKey       key               = workKey;
            RegistryFunctions registryFunctions = new RegistryFunctions();

            registryFunctions.ImportVirtualRegistryFromFile(RegFileName, key);

            // Refresh the local registry tree
            OnPackageOpenUI();
            dirty = true;
        }
示例#2
0
        internal void RegFileExport()
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.AddExtension = true;
            sfd.Filter       = "Registry file (*.reg)|*.reg";
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                String RegFileName = sfd.FileName;

                // Read Registry Keys in the package
                RegistryKey       key               = workKey;
                String            virtKey           = treeHelper.GetFullNodeName(fsFolderTree.SelectedNode);
                RegistryFunctions registryFunctions = new RegistryFunctions();
                registryFunctions.ExportVirtualRegistryToFile(RegFileName, key, virtKey);
            }
        }
示例#3
0
        private void importRegFile(string path)
        {
            String RegFileName = path;
            RegistryKey key = workKey;
            RegistryFunctions registryFunctions = new RegistryFunctions();
            registryFunctions.ImportVirtualRegistryFromFile(RegFileName, key);

            // Refresh the local registry tree
            OnPackageOpenUI();
            dirty = true;
        }
示例#4
0
        internal void RegFileExport()
        {
            SaveFileDialog sfd = new SaveFileDialog();
            sfd.AddExtension = true;
            sfd.Filter = "Registry file (*.reg)|*.reg";
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                String RegFileName = sfd.FileName;

                // Read Registry Keys in the package
                RegistryKey key = workKey;
                String virtKey = treeHelper.GetFullNodeName(fsFolderTree.SelectedNode);
                RegistryFunctions registryFunctions = new RegistryFunctions();
                registryFunctions.ExportVirtualRegistryToFile(RegFileName, key, virtKey);
            }
        }