private void OnVerify() { AssemblyDefinition assemblyDefinition = StudioPackage.GetCurrentAssemblyDefinition(); string getOrginalFilePath = GetFilePath(); if (!string.IsNullOrEmpty(getOrginalFilePath)) { AssemblyHelper.VerifyAssembly(assemblyDefinition, getOrginalFilePath); } }
private void OnSave() { AssemblyDefinition assemblyDefinition = StudioPackage.GetCurrentAssemblyDefinition(); string getOrginalFilePath = GetFilePath(); if (!string.IsNullOrEmpty(getOrginalFilePath)) { AssemblyHelper.SaveAssemblyInPlace(assemblyDefinition, getOrginalFilePath); // 9/18/2014 - Robert McGinley ([email protected]) // Update each modified item in the assembly to it's normal color foreach (ITreeViewItem item in JustDecompileCecilStudioPackage.UpdatedItems) { item.TreeNodeVisuals.SetForeground(null); } } }