Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
 }