ChangeDetectorGUI.SnapshotLayout.btnRemove_Click C# (CSharp) Method

btnRemove_Click() private method

private btnRemove_Click ( object sender, System e ) : void
sender object
e System
return void
        private void btnRemove_Click(object sender, System.EventArgs e)
        {
            if (listPaths.SelectedIndices.Count >= 1)
            {
                for (int i = listPaths.SelectedIndices.Count - 1; i >= 0; i--)
                {
                    int index = listPaths.SelectedIndices[i];
                    listPaths.Items.RemoveAt(index);
                }
            }
        }