ME3Explorer.Texplorer2.AddDLCToTree C# (CSharp) Method

AddDLCToTree() private method

private AddDLCToTree ( List pccs ) : void
pccs List
return void
        private void AddDLCToTree(List<string> pccs)
        {
            Tree.AddPCCs(pccs);
            ConcurrentBag<string> errors = ScanPCCList(false, pccs);
            Tree.WriteToFile(Tree.TreePath, Path.GetDirectoryName(pathBIOGame));

            if (errors != null && errors.Count != 0)
            {
                MessageBox.Show("Errors occured!" + Environment.NewLine + string.Join(Environment.NewLine, errors), "Your technology is based on that of the Mass Relays...", MessageBoxButtons.OK);
                StatusUpdater.UpdateText("Errors occured. See DebugWindow");
            }
            else
            {
                StatusUpdater.UpdateText("Refreshing Tree...");

                ClearDisplays();
                Tree = null;
                BeginLoadingTree();
                StatusUpdater.UpdateText("DLC added to tree!");
            }

            ProgBarUpdater.ChangeProgressBar(1, 1);
        }
Texplorer2