|
|
|
@ -307,9 +307,17 @@ namespace ICSharpCode.ILSpy
@@ -307,9 +307,17 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
foreach (char c in Path.GetInvalidFileNameChars()) |
|
|
|
|
name = name.Replace(c, '-'); |
|
|
|
|
string fileName = Path.Combine(Path.GetTempPath(), name); |
|
|
|
|
graph.Save(fileName + ".gv"); |
|
|
|
|
Process.Start("dot", "\"" + fileName + ".gv\" -Tpng -o \"" + fileName + ".png\"").WaitForExit(); |
|
|
|
|
Process.Start(fileName + ".png"); |
|
|
|
|
graph.Save(fileName + ".gv"); |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
Process.Start("dot", "\"" + fileName + ".gv\" -Tpng -o \"" + fileName + ".png\"").WaitForExit(); |
|
|
|
|
Process.Start(fileName + ".png"); |
|
|
|
|
} |
|
|
|
|
catch (Win32Exception ex) |
|
|
|
|
{ |
|
|
|
|
MessageBox.Show(String.Format("Unable to find Graphviz on your computer. Please install it. {0}", ex.Message), "ILSpy"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
#endif
|
|
|
|
|
#endregion
|
|
|
|
|