示例#1
0
        private void LoadTree()
        {
            string[] paths = GetTheLargestTrees();
            TreeName = Path.GetFileNameWithoutExtension(paths[0]);
            HeadMsg(() => { WriteLine($"Inicjalizacja - {TreeName}"); }, () => { WriteLine("Trwa wczytywanie drzewa."); });

            //var jobs = new Task[paths.Length];
            var trees = new HashTree[paths.Length];


            for (int i = 0; i < paths.Length; i++)
            {
                trees[i] = HashTree.Load(paths[i]);
                trees[i].SetParents();
            }


            Tree = trees[0];

            foreach (var tree in trees.Skip(1))
            {
                Tree.Merge(tree);
            }
        }