private void ElementaryStreamsListBox_ItemCheck(object sender, ItemCheckEventArgs e)
{
pidsToKeep.Clear();
for (int i = 0; i < ElementaryStreamsListBox.Items.Count; i++)
{
if (i != e.Index)
{
if (ElementaryStreamsListBox.CheckedItems.Contains(ElementaryStreamsListBox.Items[i]))
{
pidsToKeep.Add(pidList[i]);
}
}
else if (e.NewValue == CheckState.Checked)
pidsToKeep.Add(pidList[i]);
}
EnableCbxMlp();
}