ComponentFactory.Krypton.Toolkit.KryptonListBox.SelectedIndicesChanged C# (CSharp) Method

SelectedIndicesChanged() private method

private SelectedIndicesChanged ( int left, ListBox right ) : bool
left int
right System.Windows.Forms.ListBox
return bool
        private bool SelectedIndicesChanged(int[] left,
                                            ListBox.SelectedIndexCollection right)
        {
            // First time around the left can be null
            if ((left == null) && (right != null))
                return true;

            // Quickest check is to see if they have different number of entries
            if (left.Length != right.Count)
                return true;

            // Do it the slow way, check each entry and assume they are in numerical order
            for (int i = 0; i < left.Length; i++)
                if (left[i] != right[i])
                    return true;

            return false;
        }
KryptonListBox