Esempio n. 1
0
        private void lnkConvertToJson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //var jsonExporter = new Business.D3ForceDirectedExporter();
            //var jsonText = jsonExporter.GetAllItemsAsJson();
            //System.IO.File.WriteAllText(@".\d3-force-directed\graph.js", "var jsonVar = " + jsonText + ";", Encoding.UTF8);
            //MessageBox.Show("Done.");

            var jsonExporter = new Business.D3DendogramExporter();
            var jsonText = jsonExporter.GetAllItemsAsJson();
            System.IO.File.WriteAllText(@".\d3-dendogram\flare.json", "var root = " + jsonText + ";", Encoding.UTF8);
            MessageBox.Show("Done.");
        }
Esempio n. 2
0
        private void lnkConvertToJson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //var jsonExporter = new Business.D3ForceDirectedExporter();
            //var jsonText = jsonExporter.GetAllItemsAsJson();
            //System.IO.File.WriteAllText(@".\d3-force-directed\graph.js", "var jsonVar = " + jsonText + ";", Encoding.UTF8);
            //MessageBox.Show("Done.");

            var jsonExporter = new Business.D3DendogramExporter();
            var jsonText     = jsonExporter.GetAllItemsAsJson();

            System.IO.File.WriteAllText(@".\d3-dendogram\flare.json", "var root = " + jsonText + ";", Encoding.UTF8);
            MessageBox.Show("Done.");
        }