Example #1
0
        public static void Visualize(this INotifiable node)
        {
            var file = Path.GetTempFileName();

            File.Delete(file);
            file = Path.ChangeExtension(file, ".dgml");
            File.WriteAllText(file, DgmlExporter.Export(node));
            var process = new Process();

            process.StartInfo.FileName        = file;
            process.StartInfo.UseShellExecute = true;
            process.Start();
        }
Example #2
0
 public static void ExportToDgml(this INotifiable node, string path)
 {
     File.WriteAllText(path, DgmlExporter.Export(node));
 }