public DecompiledViewContent(string assemblyFile, string fullTypeName, string entityTag) { // TODO: create options for decompiling in a specific language this.tempFileName = string.Format("{0}{1}{2}.cs", assemblyFile, DecompiledBreakpointBookmark.SEPARATOR, fullTypeName); this.codeView = new CodeView(tempFileName); this.assemblyFile = assemblyFile; this.fullTypeName = fullTypeName; this.jumpToEntityTagWhenDecompilationFinished = entityTag; string shortTypeName = fullTypeName.Substring(fullTypeName.LastIndexOf('.') + 1); this.TitleName = "[" + shortTypeName + "]"; this.InfoTip = tempFileName; Thread thread = new Thread(DecompilationThread); thread.Name = "Decompiler (" + shortTypeName + ")"; thread.Start(); BookmarkManager.Removed += BookmarkManager_Removed; BookmarkManager.Added += BookmarkManager_Added; // add services this.Services.AddService(typeof(ITextEditor), this.codeView.TextEditor); }
public DecompiledViewContent(string assemblyFile, string fullTypeName, string entityTag) { codeView = new CodeView(string.Format("{0},{1}", assemblyFile, fullTypeName)); this.assemblyFile = assemblyFile; this.fullTypeName = fullTypeName; this.jumpToEntityTagWhenDecompilationFinished = entityTag; string shortTypeName = fullTypeName.Substring(fullTypeName.LastIndexOf('.') + 1); this.TitleName = "[" + shortTypeName + "]"; tempFileName = string.Format("decompiled/{0}.cs", fullTypeName); this.InfoTip = tempFileName; Thread thread = new Thread(DecompilationThread); thread.Name = "Decompiler (" + shortTypeName + ")"; thread.Start(); BookmarkManager.Removed += BookmarkManager_Removed; BookmarkManager.Added += BookmarkManager_Added; }