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; }