ME3Explorer.Texplorer2.UpdatePCCList C# (CSharp) Method

UpdatePCCList() private method

private UpdatePCCList ( bool SelectAll, TreeTexInfo current ) : void
SelectAll bool
current KFreonLib.Textures.TreeTexInfo
return void
        private void UpdatePCCList(bool SelectAll, TreeTexInfo current)
        {
            if (SelectAll)
                for (int i = 0; i < PCCsCheckedListBox.Items.Count; i++)
                    PCCsCheckedListBox.SetItemChecked(i, PCCsCheckedListBox.GetItemChecked(0));
            else
                PCCsCheckedListBox.SetItemChecked(0, false);

            List<string> newlist = new List<string>();
            List<int> newlist2 = new List<int>();
            foreach (string item in PCCsCheckedListBox.CheckedItems)
            {
                var bits = item.Split('@');

                if (bits.Length == 1)
                    continue;

                newlist.Add(bits[0].Trim());
                newlist2.Add(Convert.ToInt32(bits[1]));
            }
            current.Files = new List<string>(newlist);
            current.ExpIDs = new List<int>(newlist2);


            Tree.ReplaceTex(GetSelectedTexInd(), current);
        }
Texplorer2