TsRemux.TsRemux.ElementaryStreamsListBox_ItemCheck C# (CSharp) Method

ElementaryStreamsListBox_ItemCheck() private method

private ElementaryStreamsListBox_ItemCheck ( object sender, ItemCheckEventArgs e ) : void
sender object
e ItemCheckEventArgs
return void
        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();
        }
TsRemux