private void rename(UInt32[] hashes, string[] oldName) { new PleaseWait(MainWindow.Instance, "Renaming", delegate(PleaseWait progress) { Renamer.rename(hashes, oldName, progress); }).ShowDialog(); }
private void readNamesFile(byte[] data) { var newHashes = new List <UInt32>(); NameRegistry.Files.readRegistry(new StreamReader(new MemoryStream(data)), false, newHashes); if (newHashes.Count != 0) { Renamer.rename(newHashes.ToArray(), (from h in newHashes select "#" + h.ToString("X8")).ToArray(), null); } NameRegistry.Files.save(); }