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);
}