public void Undo() { origOptions.CopyTo(asmNode.Document.AssemblyDef); if (assemblyRefInfos != null) { foreach (var info in assemblyRefInfos) { info.AssemblyRef.Name = info.OrigName; info.AssemblyRef.PublicKeyOrToken = info.OrigPublicKeyOrToken; } } asmNode.TreeNode.RefreshUI(); }
public void Undo() { origOptions.CopyTo(asmNode.DnSpyFile.AssemblyDef); if (assemblyRefInfos != null) { foreach (var info in assemblyRefInfos) { info.AssemblyRef.Name = info.OrigName; info.AssemblyRef.PublicKeyOrToken = info.OrigPublicKeyOrToken; } } asmNode.RaiseUIPropsChanged(); }
public void Execute() { newOptions.CopyTo(asmNode.Document.AssemblyDef); if (assemblyRefInfos != null) { var pkt = newOptions.PublicKey.Token; foreach (var info in assemblyRefInfos) { info.AssemblyRef.Name = newOptions.Name; if (info.AssemblyRef.PublicKeyOrToken is PublicKeyToken) { info.AssemblyRef.PublicKeyOrToken = pkt; } else { info.AssemblyRef.PublicKeyOrToken = newOptions.PublicKey; } } } asmNode.TreeNode.RefreshUI(); }
public void Execute() { newOptions.CopyTo(asmNode.DnSpyFile.AssemblyDef); if (assemblyRefInfos != null) { var pkt = newOptions.PublicKey.Token; foreach (var info in assemblyRefInfos) { info.AssemblyRef.Name = newOptions.Name; if (info.AssemblyRef.PublicKeyOrToken is PublicKeyToken) { info.AssemblyRef.PublicKeyOrToken = pkt; } else { info.AssemblyRef.PublicKeyOrToken = newOptions.PublicKey; } } } asmNode.RaiseUIPropsChanged(); }