示例#1
0
 public void Save()
 {
     try
     {
         WorkingAssembly.Write(NewLocation);
     } catch (Exception e)
     {
         Logger.Log(e.Message);
         Logger.Log(e.StackTrace);
     }
 }
示例#2
0
 public void Load()
 {
     try
     {
         OriginalAssembly = AssemblyDefinition.ReadAssembly(OriginalLocation);
         WorkingAssembly  = OriginalAssembly;
     }
     catch
     {
         Logger.Log(Constants.AssemblyErrorMessage);
         HasIssue = true;
         return;
     }
     if (WorkingAssembly.HasStrongName())
     {
         Logger.Log("Removing Strongname Key...");
         WorkingAssembly.RemoveStrongName();
     }
 }
示例#3
0
 public void Load()
 {
     try
     {
         OriginalAssembly = AssemblyDefinition.ReadAssembly(OriginalLocation);
         WorkingAssembly  = OriginalAssembly;
     }
     catch
     {
         Logger.Log(Constants.AssemblyErrorMessage);
         HasIssue = true;
         return;
     }
     if (WorkingAssembly.HasStrongName())
     {
         Logger.Log("Removing Strongname Key...");
         WorkingAssembly.RemoveStrongName();
     }
     Logger.Log("Gathering User Input...");
     _toChange    = Interface.GetUserInputDialog("What string are you replacing?", "Settings", "example.com");
     _replacement = Interface.GetUserInputDialog("What are you replacing it with?", "Settings", "example.net");
 }
示例#4
0
 public void Save()
 {
     WorkingAssembly.Write(NewLocation);
 }