ME3Explorer.Texplorer2.PCCsCheckedListBox_SelectedIndexChanged C# (CSharp) Method

PCCsCheckedListBox_SelectedIndexChanged() private method

private PCCsCheckedListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void PCCsCheckedListBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = PCCsCheckedListBox.SelectedIndex;
            bool SelectAll = false;
            if (index < 0)
                return;

            int texInd = GetSelectedTexInd();
            TreeTexInfo temp = Tree.GetTex(texInd);
            if (index == 0)
                SelectAll = true;
            else if ((PCCsCheckedListBox.CheckedIndices.Count == temp.Files.Count) && !PCCsCheckedListBox.CheckedIndices.Contains(0))    // KFreon: If all items checked, check "Select All" box
            {
                PCCsCheckedListBox.SetItemChecked(0, true);
                SelectAll = true;
            }

            Console.WriteLine(PCCsCheckedListBox.CheckedIndices.Count);
            UpdatePCCList(SelectAll, temp);
        }
Texplorer2