コード例 #1
0
ファイル: MainForm.cs プロジェクト: xavierpena/family_tree
        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.");
        }
コード例 #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.");
        }