Beispiel #1
0
        public static void RunFromSolution()
        {
            //This takes an absolute path. Copy the full path and file name of your .json file (for example: "C:\temp\Test.json")
            StreamReader jsondata = new StreamReader(@"C:\Users\beckerfs\Documents\Projects\LVTWebApp\Lean-Value-Tree-Visualisation\LVT\SingleBranchLVT.json");
            string       LVT      = ReadAndWrite.BuildTree(jsondata);
            string       FullHTML = ReadAndWrite.CreateFullHTML(LVT);

            ReadAndWrite.SaveToDisk(FullHTML);
        }
Beispiel #2
0
        public static void RunFromCommandLine(string[] args)
        {
            string filename = args.Length == 0 ? null : args[0];

            Validate.ValidateArgument(filename);
            StreamReader file     = File.OpenText(args[0]);
            string       LVT      = ReadAndWrite.BuildTree(file);
            string       FullHTML = ReadAndWrite.CreateFullHTML(LVT);

            ReadAndWrite.SaveToDisk(FullHTML);
        }