Base:
property
SelectedIndex
System.Windows.Forms.ListControl.SelectedIndex
96 writes to SelectedIndex
PresentationUI (2)
MS\Internal\Documents\CredentialManagerDialog.cs (1)
68_credListBox.SelectedIndex = _credListBox.Items.IndexOf(defaultAccount);
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
428_listBoxSummary.SelectedIndex = selectedIndex;
System.Windows.Forms (11)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
957SelectedIndex = index; 962SelectedIndex = -1; 1091SelectedIndex = index; 1921SelectedIndex = -1; 1939SelectedIndex = DataManager.Position; 2012SelectedIndex = DataManager.Position;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
250_owningListBox.SelectedIndex = CurrentIndex;
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
432_owner.SelectedIndex = index;
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
265_owner.SelectedIndex = index;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3720DropDownListBox.SelectedIndex = selectionIndex;
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
58_itemList.SelectedIndex = selIndex;
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (7)
164_listBox.SelectedIndex = _listBox.Items.Count - 1; 179_listBox.SelectedIndex = _listBox.Items.Count - 1; 335_listBox.SelectedIndex = index + 1; 763_listBox.SelectedIndex = 0; 823_listBox.SelectedIndex = index; 827_listBox.SelectedIndex = _listBox.Items.Count - 1; 1004_listBox.SelectedIndex = index - 1;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
100SelectedIndex = i;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
707_dataColumns.SelectedIndex = -1; 743_dataColumns.SelectedIndex = selectedIndex != -1 && selectedIndex < _dataColumns.Items.Count
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
99_selectedColumns.SelectedIndex = _columnsPrivateCopy.IndexOf((DataGridViewColumn)e.Element!); 164_selectedColumns.SelectedIndex = selectedIndex; 701_selectedColumns.SelectedIndex = selectedIndex + 1; 745_selectedColumns.SelectedIndex = selectedIndex - 1; 805_selectedColumns.SelectedIndex = Math.Min(0, _selectedColumns.Items.Count - 1); 834_selectedColumns.SelectedIndex = Math.Min(_selectedColumns.Items.Count - 1, selectedIndex); 881_selectedColumns.SelectedIndex = Math.Min(selectedIndex, _selectedColumns.Items.Count - 1);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
111_typesListBox.SelectedIndex = TypeToSelectedIndex(defaultType);
System\Windows\Forms\Design\FormatControl.cs (6)
46formatTypeListBox.SelectedIndex = 0; 54formatTypeListBox.SelectedIndex = i; 234dateTimeFormatsListBox.SelectedIndex = -1; 235formatTypeListBox.SelectedIndex = -1; 338dateTimeFormatsListBox.SelectedIndex = 0; 396formatTypeListBox.SelectedIndex = 0;
System\Windows\Forms\Design\FormatControl.DateTimeFormatType.cs (1)
108_owner.dateTimeFormatsListBox.SelectedIndex = selectedIndex;
System.Windows.Forms.Tests (55)
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
365checkedListBox.SelectedIndex = 0; // Select and focus the first item
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (3)
262listBox.SelectedIndex = 0; 265listBox.SelectedIndex = 1; 296listBox.SelectedIndex = 1; // Focus the second item
System\Windows\Forms\ListBoxTests.cs (51)
2329SelectedIndex = -1 2338control.SelectedIndex = -1; 2358control.SelectedIndex = 1; 2366control.SelectedIndex = 1; 2374control.SelectedIndex = 0; 2381control.SelectedIndex = -1; 2403control.SelectedIndex = 1; 2411control.SelectedIndex = 1; 2419control.SelectedIndex = 0; 2427control.SelectedIndex = -1; 2453control.SelectedIndex = 1; 2462control.SelectedIndex = 1; 2471control.SelectedIndex = 0; 2480control.SelectedIndex = -1; 2508control.SelectedIndex = 1; 2519control.SelectedIndex = 1; 2530control.SelectedIndex = 0; 2540control.SelectedIndex = -1; 2572control.SelectedIndex = 1; 2583control.SelectedIndex = 1; 2594control.SelectedIndex = 0; 2605control.SelectedIndex = -1; 2629control.SelectedIndex = 1; 2633control.SelectedIndex = 0; 2637control.SelectedIndex = -1; 2656control.SelectedIndex = 1; 2663control.SelectedIndex = 0; 2669control.SelectedIndex = -1; 2698control.SelectedIndex = 1; 2704control.SelectedIndex = 1; 2710control.SelectedIndex = 0; 2715control.SelectedIndex = -1; 2721control.SelectedIndex = 1; 2733Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectedIndex = value); 2743Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectedIndex = value); 2753Assert.Throws<ArgumentException>("value", () => control.SelectedIndex = -1); 3427control.SelectedIndex = 1; 3463control.SelectedIndex = 1; 3504control.SelectedIndex = 0; 3505control.SelectedIndex = 1; 3546control.SelectedIndex = 0; 3547control.SelectedIndex = 1; 3687control.SelectedIndex = 1; 3739control.SelectedIndex = 1; 3796control.SelectedIndex = 0; 3797control.SelectedIndex = 1; 3854control.SelectedIndex = 0; 3855control.SelectedIndex = 1; 4217control.SelectedIndex = 0; 6328Action action = () => listBox.SelectedIndex = 0; 6345Action action = () => listBox.SelectedIndex = 0;
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (2)
779ListDragSource.SelectedIndex = _indexOfItemUnderMouseToDrag - 1; 783ListDragSource.SelectedIndex = 0;
ListBoxAccesibleObjectTests.cs (1)
53listBox.SelectedIndex = 0;
481 references to SelectedIndex
PresentationUI (15)
MS\Internal\Documents\CredentialManagerDialog.cs (5)
86if (_credListBox.SelectedIndex >= 0) 102if (_credListBox.SelectedIndex >= 0) 106(string) _credListBox.Items[_credListBox.SelectedIndex]); 117if (_credListBox.SelectedIndex >= 0) 121(string)_credListBox.Items[_credListBox.SelectedIndex]);
MS\Internal\Documents\SignatureSummaryDialog.cs (10)
345if (_listBoxSummary.SelectedIndex >= 0) 349(SignatureResources)_listBoxSummary.Items[_listBoxSummary.SelectedIndex], 372if (_listBoxSummary.SelectedIndex >= 0) 375(SignatureResources)_listBoxSummary.Items[_listBoxSummary.SelectedIndex], 403if (_listBoxSummary.SelectedIndex >= 0) 408_listBoxSummary.Items[_listBoxSummary.SelectedIndex] 424int selectedIndex = _listBoxSummary.SelectedIndex; 469if (_listBoxSummary.SelectedIndex >= 0) 474if (_documentSignatureManager.HasCertificate((SignatureResources)_listBoxSummary.Items[_listBoxSummary.SelectedIndex])) 595_listBoxSummary.SelectedIndex == e.Index
System.Windows.Forms (14)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (2)
96if (_owningCheckedListBox.SelectedIndex == CurrentIndex) 101if (_owningCheckedListBox.Focused && _owningCheckedListBox.SelectedIndex == -1)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
411int index = SelectedIndex; 827_lastSelected = SelectedIndex;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
237int index = owner.SelectedIndex;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (5)
862int currentIndex = SelectedIndex; 883if (SelectedIndex != -1) 1894if (DataManager is not null && DataManager.Position != SelectedIndex) 1897if (!FormattingEnabled || SelectedIndex != -1) 1901DataManager.Position = SelectedIndex;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
104if (_owningListBox.SelectedIndex == CurrentIndex) 205if (_owningListBox.SelectedIndex == -1) // no item selected
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
423bool selected = (_owner.SelectedIndex == index);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
45int index = _owner.SelectedIndex;
System.Windows.Forms.Design (34)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (6)
176if (_listBox.Items.Count > 0 && _listBox.SelectedIndex != _listBox.Items.Count - 1) 320int index = _listBox.SelectedIndex; 801int index = _listBox.SelectedIndex; 848int selectedItem = _listBox.SelectedIndex; 851_listBox.RefreshItem(_listBox.SelectedIndex); 985int index = _listBox.SelectedIndex;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
114if (_dataBoundColumnRadioButton.Checked && _dataColumns.SelectedIndex > -1) 705int selectedIndex = _dataColumns.SelectedIndex;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (25)
123int selectedIndex = _selectedColumns.SelectedIndex; 662int selectedIndex = _selectedColumns.SelectedIndex; 702_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 703_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 708int selectedIndex = _selectedColumns.SelectedIndex; 746_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 747_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 752if (_selectedColumns.SelectedIndex != -1 && _selectedColumns.TopIndex > _selectedColumns.SelectedIndex) 754_selectedColumns.TopIndex = _selectedColumns.SelectedIndex; 807_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 808_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 809_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1; 825Debug.Assert(_selectedColumns.SelectedIndex != -1); 826int selectedIndex = _selectedColumns.SelectedIndex; 836_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 837_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 838_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1; 844int insertIndex = _selectedColumns.SelectedIndex == -1 ? _selectedColumns.Items.Count : _selectedColumns.SelectedIndex + 1; 860int selectedIndex = _selectedColumns.SelectedIndex; 903int selectedIndex = _selectedColumns.SelectedIndex; 1066_moveDown.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != _selectedColumns.Items.Count - 1; 1067_moveUp.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex > 0; 1068_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
System\Windows\Forms\Design\FormatControl.cs (1)
175int selIndex = formatTypeListBox.SelectedIndex;
System.Windows.Forms.Tests (418)
CheckedListBoxTests.cs (5)
510Assert.Equal(0, checkedListBox.SelectedIndex); 518Assert.Equal(0, checkedListBox.SelectedIndex); 526Assert.Equal(0, checkedListBox.SelectedIndex); 551Assert.Equal(0, checkedListBox.SelectedIndex); 560Assert.Equal(-1, checkedListBox.SelectedIndex);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (300)
685Assert.Equal(1, owner.SelectedIndex); 693Assert.Equal(1, owner.SelectedIndex); 701Assert.Equal(1, owner.SelectedIndex); 709Assert.Equal(1, owner.SelectedIndex); 734Assert.Equal(1, owner.SelectedIndex); 742Assert.Equal(1, owner.SelectedIndex); 750Assert.Equal(1, owner.SelectedIndex); 758Assert.Equal(1, owner.SelectedIndex); 787Assert.Equal(1, owner.SelectedIndex); 795Assert.Equal(1, owner.SelectedIndex); 803Assert.Equal(1, owner.SelectedIndex); 811Assert.Equal(1, owner.SelectedIndex); 819Assert.Equal(1, owner.SelectedIndex); 827Assert.Equal(1, owner.SelectedIndex); 857Assert.Equal(1, owner.SelectedIndex); 865Assert.Equal(1, owner.SelectedIndex); 873Assert.Equal(1, owner.SelectedIndex); 881Assert.Equal(1, owner.SelectedIndex); 889Assert.Equal(1, owner.SelectedIndex); 897Assert.Equal(1, owner.SelectedIndex); 931Assert.Equal(1, owner.SelectedIndex); 942Assert.Equal(1, owner.SelectedIndex); 953Assert.Equal(1, owner.SelectedIndex); 964Assert.Equal(1, owner.SelectedIndex); 1004Assert.Equal(1, owner.SelectedIndex); 1015Assert.Equal(1, owner.SelectedIndex); 1026Assert.Equal(1, owner.SelectedIndex); 1037Assert.Equal(1, owner.SelectedIndex); 1081Assert.Equal(1, owner.SelectedIndex); 1092Assert.Equal(1, owner.SelectedIndex); 1103Assert.Equal(1, owner.SelectedIndex); 1114Assert.Equal(1, owner.SelectedIndex); 1125Assert.Equal(1, owner.SelectedIndex); 1136Assert.Equal(1, owner.SelectedIndex); 1181Assert.Equal(1, owner.SelectedIndex); 1192Assert.Equal(1, owner.SelectedIndex); 1203Assert.Equal(1, owner.SelectedIndex); 1214Assert.Equal(1, owner.SelectedIndex); 1225Assert.Equal(1, owner.SelectedIndex); 1236Assert.Equal(1, owner.SelectedIndex); 1804Assert.Equal(0, owner.SelectedIndex); 1812Assert.Equal(0, owner.SelectedIndex); 1836Assert.Equal(1, owner.SelectedIndex); 1844Assert.Equal(1, owner.SelectedIndex); 1872Assert.Equal(0, owner.SelectedIndex); 1880Assert.Equal(0, owner.SelectedIndex); 1888Assert.Equal(0, owner.SelectedIndex); 1916Assert.Equal(1, owner.SelectedIndex); 1923Assert.Equal(1, owner.SelectedIndex); 1930Assert.Equal(1, owner.SelectedIndex); 1957Assert.Equal(0, owner.SelectedIndex); 1968Assert.Equal(0, owner.SelectedIndex); 2002Assert.Equal(1, owner.SelectedIndex); 2013Assert.Equal(1, owner.SelectedIndex); 2051Assert.Equal(0, owner.SelectedIndex); 2062Assert.Equal(0, owner.SelectedIndex); 2073Assert.Equal(0, owner.SelectedIndex); 2111Assert.Equal(1, owner.SelectedIndex); 2122Assert.Equal(1, owner.SelectedIndex); 2133Assert.Equal(1, owner.SelectedIndex); 2546Assert.Equal(0, owner.SelectedIndex); 2554Assert.Equal(0, owner.SelectedIndex); 2577Assert.Equal(1, owner.SelectedIndex); 2585Assert.Equal(1, owner.SelectedIndex); 2612Assert.Equal(0, owner.SelectedIndex); 2620Assert.Equal(0, owner.SelectedIndex); 2647Assert.Equal(1, owner.SelectedIndex); 2654Assert.Equal(1, owner.SelectedIndex); 2680Assert.Equal(0, owner.SelectedIndex); 2691Assert.Equal(0, owner.SelectedIndex); 2724Assert.Equal(1, owner.SelectedIndex); 2735Assert.Equal(1, owner.SelectedIndex); 2772Assert.Equal(0, owner.SelectedIndex); 2783Assert.Equal(0, owner.SelectedIndex); 2820Assert.Equal(1, owner.SelectedIndex); 2831Assert.Equal(1, owner.SelectedIndex); 3243Assert.Equal(0, owner.SelectedIndex); 3253Assert.Equal(0, owner.SelectedIndex); 3279Assert.Equal(1, owner.SelectedIndex); 3289Assert.Equal(1, owner.SelectedIndex); 3319Assert.Equal(0, owner.SelectedIndex); 3329Assert.Equal(0, owner.SelectedIndex); 3359Assert.Equal(1, owner.SelectedIndex); 3368Assert.Equal(1, owner.SelectedIndex); 3397Assert.Equal(0, owner.SelectedIndex); 3410Assert.Equal(0, owner.SelectedIndex); 3446Assert.Equal(1, owner.SelectedIndex); 3459Assert.Equal(1, owner.SelectedIndex); 3499Assert.Equal(0, owner.SelectedIndex); 3512Assert.Equal(0, owner.SelectedIndex); 3552Assert.Equal(1, owner.SelectedIndex); 3565Assert.Equal(1, owner.SelectedIndex); 4627Assert.Equal(0, owner.SelectedIndex); 4635Assert.Equal(0, owner.SelectedIndex); 4689Assert.Equal(0, owner.SelectedIndex); 4697Assert.Equal(0, owner.SelectedIndex); 4705Assert.Equal(0, owner.SelectedIndex); 4731Assert.Equal(1, owner.SelectedIndex); 4738Assert.Equal(1, owner.SelectedIndex); 4745Assert.Equal(1, owner.SelectedIndex); 4772Assert.Equal(0, owner.SelectedIndex); 4783Assert.Equal(0, owner.SelectedIndex); 4817Assert.Equal(1, owner.SelectedIndex); 4828Assert.Equal(1, owner.SelectedIndex); 4866Assert.Equal(0, owner.SelectedIndex); 4877Assert.Equal(0, owner.SelectedIndex); 4888Assert.Equal(0, owner.SelectedIndex); 4926Assert.Equal(1, owner.SelectedIndex); 4937Assert.Equal(1, owner.SelectedIndex); 4948Assert.Equal(1, owner.SelectedIndex); 5554Assert.Equal(0, owner.SelectedIndex); 5562Assert.Equal(0, owner.SelectedIndex); 5570Assert.Equal(-1, owner.SelectedIndex); 5595Assert.Equal(0, owner.SelectedIndex); 5603Assert.Equal(0, owner.SelectedIndex); 5611Assert.Equal(-1, owner.SelectedIndex); 5640Assert.Equal(0, owner.SelectedIndex); 5648Assert.Equal(0, owner.SelectedIndex); 5656Assert.Equal(0, owner.SelectedIndex); 5664Assert.Equal(-1, owner.SelectedIndex); 5692Assert.Equal(0, owner.SelectedIndex); 5700Assert.Equal(0, owner.SelectedIndex); 5708Assert.Equal(0, owner.SelectedIndex); 5716Assert.Equal(-1, owner.SelectedIndex); 5749Assert.Equal(0, owner.SelectedIndex); 5760Assert.Equal(0, owner.SelectedIndex); 5771Assert.Equal(-1, owner.SelectedIndex); 5811Assert.Equal(0, owner.SelectedIndex); 5822Assert.Equal(0, owner.SelectedIndex); 5833Assert.Equal(-1, owner.SelectedIndex); 5872Assert.Equal(0, owner.SelectedIndex); 5882Assert.Equal(0, owner.SelectedIndex); 5892Assert.Equal(0, owner.SelectedIndex); 5902Assert.Equal(-1, owner.SelectedIndex); 5940Assert.Equal(0, owner.SelectedIndex); 5950Assert.Equal(0, owner.SelectedIndex); 5960Assert.Equal(0, owner.SelectedIndex); 5970Assert.Equal(-1, owner.SelectedIndex); 6409Assert.Equal(0, owner.SelectedIndex); 6417Assert.Equal(0, owner.SelectedIndex); 6425Assert.Equal(-1, owner.SelectedIndex); 6450Assert.Equal(0, owner.SelectedIndex); 6458Assert.Equal(0, owner.SelectedIndex); 6466Assert.Equal(-1, owner.SelectedIndex); 6495Assert.Equal(0, owner.SelectedIndex); 6503Assert.Equal(0, owner.SelectedIndex); 6511Assert.Equal(0, owner.SelectedIndex); 6519Assert.Equal(-1, owner.SelectedIndex); 6547Assert.Equal(0, owner.SelectedIndex); 6555Assert.Equal(0, owner.SelectedIndex); 6563Assert.Equal(0, owner.SelectedIndex); 6571Assert.Equal(-1, owner.SelectedIndex); 6604Assert.Equal(0, owner.SelectedIndex); 6615Assert.Equal(0, owner.SelectedIndex); 6626Assert.Equal(-1, owner.SelectedIndex); 6666Assert.Equal(0, owner.SelectedIndex); 6677Assert.Equal(0, owner.SelectedIndex); 6688Assert.Equal(-1, owner.SelectedIndex); 6727Assert.Equal(0, owner.SelectedIndex); 6737Assert.Equal(0, owner.SelectedIndex); 6747Assert.Equal(0, owner.SelectedIndex); 6757Assert.Equal(-1, owner.SelectedIndex); 6795Assert.Equal(0, owner.SelectedIndex); 6805Assert.Equal(0, owner.SelectedIndex); 6815Assert.Equal(0, owner.SelectedIndex); 6825Assert.Equal(-1, owner.SelectedIndex); 7490Assert.Equal(1, owner.SelectedIndex); 7498Assert.Equal(1, owner.SelectedIndex); 7506Assert.Equal(1, owner.SelectedIndex); 7514Assert.Equal(1, owner.SelectedIndex); 7539Assert.Equal(1, owner.SelectedIndex); 7547Assert.Equal(1, owner.SelectedIndex); 7555Assert.Equal(1, owner.SelectedIndex); 7563Assert.Equal(1, owner.SelectedIndex); 7592Assert.Equal(1, owner.SelectedIndex); 7600Assert.Equal(1, owner.SelectedIndex); 7608Assert.Equal(1, owner.SelectedIndex); 7616Assert.Equal(1, owner.SelectedIndex); 7624Assert.Equal(1, owner.SelectedIndex); 7632Assert.Equal(1, owner.SelectedIndex); 7662Assert.Equal(1, owner.SelectedIndex); 7670Assert.Equal(1, owner.SelectedIndex); 7678Assert.Equal(1, owner.SelectedIndex); 7686Assert.Equal(1, owner.SelectedIndex); 7694Assert.Equal(1, owner.SelectedIndex); 7702Assert.Equal(1, owner.SelectedIndex); 7736Assert.Equal(1, owner.SelectedIndex); 7747Assert.Equal(1, owner.SelectedIndex); 7758Assert.Equal(1, owner.SelectedIndex); 7769Assert.Equal(1, owner.SelectedIndex); 7809Assert.Equal(1, owner.SelectedIndex); 7820Assert.Equal(1, owner.SelectedIndex); 7831Assert.Equal(1, owner.SelectedIndex); 7842Assert.Equal(1, owner.SelectedIndex); 7886Assert.Equal(1, owner.SelectedIndex); 7897Assert.Equal(1, owner.SelectedIndex); 7908Assert.Equal(1, owner.SelectedIndex); 7919Assert.Equal(1, owner.SelectedIndex); 7930Assert.Equal(1, owner.SelectedIndex); 7941Assert.Equal(1, owner.SelectedIndex); 7986Assert.Equal(1, owner.SelectedIndex); 7997Assert.Equal(1, owner.SelectedIndex); 8008Assert.Equal(1, owner.SelectedIndex); 8019Assert.Equal(1, owner.SelectedIndex); 8030Assert.Equal(1, owner.SelectedIndex); 8041Assert.Equal(1, owner.SelectedIndex); 8609Assert.Equal(0, owner.SelectedIndex); 8617Assert.Equal(0, owner.SelectedIndex); 8641Assert.Equal(1, owner.SelectedIndex); 8649Assert.Equal(1, owner.SelectedIndex); 8677Assert.Equal(0, owner.SelectedIndex); 8685Assert.Equal(0, owner.SelectedIndex); 8693Assert.Equal(0, owner.SelectedIndex); 8721Assert.Equal(1, owner.SelectedIndex); 8728Assert.Equal(1, owner.SelectedIndex); 8735Assert.Equal(1, owner.SelectedIndex); 8762Assert.Equal(0, owner.SelectedIndex); 8773Assert.Equal(0, owner.SelectedIndex); 8807Assert.Equal(1, owner.SelectedIndex); 8818Assert.Equal(1, owner.SelectedIndex); 8856Assert.Equal(0, owner.SelectedIndex); 8867Assert.Equal(0, owner.SelectedIndex); 8878Assert.Equal(0, owner.SelectedIndex); 8916Assert.Equal(1, owner.SelectedIndex); 8927Assert.Equal(1, owner.SelectedIndex); 8938Assert.Equal(1, owner.SelectedIndex); 9949Assert.Equal(0, owner.SelectedIndex); 9957Assert.Equal(0, owner.SelectedIndex); 10011Assert.Equal(0, owner.SelectedIndex); 10019Assert.Equal(0, owner.SelectedIndex); 10027Assert.Equal(0, owner.SelectedIndex); 10053Assert.Equal(1, owner.SelectedIndex); 10060Assert.Equal(1, owner.SelectedIndex); 10067Assert.Equal(1, owner.SelectedIndex); 10094Assert.Equal(0, owner.SelectedIndex); 10105Assert.Equal(0, owner.SelectedIndex); 10139Assert.Equal(1, owner.SelectedIndex); 10150Assert.Equal(1, owner.SelectedIndex); 10188Assert.Equal(0, owner.SelectedIndex); 10199Assert.Equal(0, owner.SelectedIndex); 10210Assert.Equal(0, owner.SelectedIndex); 10248Assert.Equal(1, owner.SelectedIndex); 10259Assert.Equal(1, owner.SelectedIndex); 10270Assert.Equal(1, owner.SelectedIndex); 10876Assert.Equal(0, owner.SelectedIndex); 10884Assert.Equal(0, owner.SelectedIndex); 10892Assert.Equal(-1, owner.SelectedIndex); 10917Assert.Equal(0, owner.SelectedIndex); 10925Assert.Equal(0, owner.SelectedIndex); 10933Assert.Equal(-1, owner.SelectedIndex); 10962Assert.Equal(0, owner.SelectedIndex); 10970Assert.Equal(0, owner.SelectedIndex); 10978Assert.Equal(0, owner.SelectedIndex); 10986Assert.Equal(-1, owner.SelectedIndex); 11014Assert.Equal(0, owner.SelectedIndex); 11022Assert.Equal(0, owner.SelectedIndex); 11030Assert.Equal(0, owner.SelectedIndex); 11038Assert.Equal(-1, owner.SelectedIndex); 11071Assert.Equal(0, owner.SelectedIndex); 11082Assert.Equal(0, owner.SelectedIndex); 11093Assert.Equal(-1, owner.SelectedIndex); 11133Assert.Equal(0, owner.SelectedIndex); 11144Assert.Equal(0, owner.SelectedIndex); 11155Assert.Equal(-1, owner.SelectedIndex); 11194Assert.Equal(0, owner.SelectedIndex); 11204Assert.Equal(0, owner.SelectedIndex); 11214Assert.Equal(0, owner.SelectedIndex); 11224Assert.Equal(-1, owner.SelectedIndex); 11262Assert.Equal(0, owner.SelectedIndex); 11272Assert.Equal(0, owner.SelectedIndex); 11282Assert.Equal(0, owner.SelectedIndex); 11292Assert.Equal(-1, owner.SelectedIndex); 11731Assert.Equal(0, owner.SelectedIndex); 11739Assert.Equal(0, owner.SelectedIndex); 11747Assert.Equal(-1, owner.SelectedIndex); 11772Assert.Equal(0, owner.SelectedIndex); 11780Assert.Equal(0, owner.SelectedIndex); 11788Assert.Equal(-1, owner.SelectedIndex); 11817Assert.Equal(0, owner.SelectedIndex); 11825Assert.Equal(0, owner.SelectedIndex); 11833Assert.Equal(0, owner.SelectedIndex); 11841Assert.Equal(-1, owner.SelectedIndex); 11869Assert.Equal(0, owner.SelectedIndex); 11877Assert.Equal(0, owner.SelectedIndex); 11885Assert.Equal(0, owner.SelectedIndex); 11893Assert.Equal(-1, owner.SelectedIndex); 11926Assert.Equal(0, owner.SelectedIndex); 11937Assert.Equal(0, owner.SelectedIndex); 11948Assert.Equal(-1, owner.SelectedIndex); 11988Assert.Equal(0, owner.SelectedIndex); 11999Assert.Equal(0, owner.SelectedIndex); 12010Assert.Equal(-1, owner.SelectedIndex); 12049Assert.Equal(0, owner.SelectedIndex); 12059Assert.Equal(0, owner.SelectedIndex); 12069Assert.Equal(0, owner.SelectedIndex); 12079Assert.Equal(-1, owner.SelectedIndex); 12117Assert.Equal(0, owner.SelectedIndex); 12127Assert.Equal(0, owner.SelectedIndex); 12137Assert.Equal(0, owner.SelectedIndex); 12147Assert.Equal(-1, owner.SelectedIndex);
System\Windows\Forms\ListBoxTests.cs (113)
109Assert.Equal(-1, control.SelectedIndex); 2303Assert.Equal(-1, control.SelectedIndex); 2317Assert.Equal(-1, control.SelectedIndex); 2331Assert.Equal(-1, control.SelectedIndex); 2339Assert.Equal(-1, control.SelectedIndex); 2359Assert.Equal(1, control.SelectedIndex); 2367Assert.Equal(1, control.SelectedIndex); 2375Assert.Equal(0, control.SelectedIndex); 2382Assert.Equal(-1, control.SelectedIndex); 2404Assert.Equal(1, control.SelectedIndex); 2412Assert.Equal(1, control.SelectedIndex); 2420Assert.Equal(0, control.SelectedIndex); 2428Assert.Equal(-1, control.SelectedIndex); 2454Assert.Equal(1, control.SelectedIndex); 2463Assert.Equal(1, control.SelectedIndex); 2472Assert.Equal(0, control.SelectedIndex); 2481Assert.Equal(-1, control.SelectedIndex); 2509Assert.Equal(1, control.SelectedIndex); 2520Assert.Equal(1, control.SelectedIndex); 2531Assert.Equal(0, control.SelectedIndex); 2541Assert.Equal(-1, control.SelectedIndex); 2573Assert.Equal(1, control.SelectedIndex); 2584Assert.Equal(1, control.SelectedIndex); 2595Assert.Equal(0, control.SelectedIndex); 2606Assert.Equal(-1, control.SelectedIndex); 2699Assert.Equal(1, control.SelectedIndex); 2705Assert.Equal(1, control.SelectedIndex); 2711Assert.Equal(0, control.SelectedIndex); 2716Assert.Equal(-1, control.SelectedIndex); 2722Assert.Equal(1, control.SelectedIndex); 2797Assert.Equal(-1, control.SelectedIndex); 2805Assert.Equal(-1, control.SelectedIndex); 2825Assert.Equal(1, control.SelectedIndex); 2833Assert.Equal(1, control.SelectedIndex); 2841Assert.Equal(1, control.SelectedIndex); 2849Assert.Equal(0, control.SelectedIndex); 2856Assert.Equal(-1, control.SelectedIndex); 2878Assert.Equal(1, control.SelectedIndex); 2886Assert.Equal(1, control.SelectedIndex); 2894Assert.Equal(1, control.SelectedIndex); 2902Assert.Equal(0, control.SelectedIndex); 2910Assert.Equal(-1, control.SelectedIndex); 2936Assert.Equal(1, control.SelectedIndex); 2945Assert.Equal(1, control.SelectedIndex); 2954Assert.Equal(1, control.SelectedIndex); 2963Assert.Equal(0, control.SelectedIndex); 2972Assert.Equal(-1, control.SelectedIndex); 3000Assert.Equal(1, control.SelectedIndex); 3011Assert.Equal(1, control.SelectedIndex); 3022Assert.Equal(1, control.SelectedIndex); 3033Assert.Equal(0, control.SelectedIndex); 3043Assert.Equal(-1, control.SelectedIndex); 3075Assert.Equal(1, control.SelectedIndex); 3086Assert.Equal(1, control.SelectedIndex); 3097Assert.Equal(1, control.SelectedIndex); 3108Assert.Equal(0, control.SelectedIndex); 3119Assert.Equal(-1, control.SelectedIndex); 3223Assert.Equal(1, control.SelectedIndex); 3229Assert.Equal(1, control.SelectedIndex); 3235Assert.Equal(1, control.SelectedIndex); 3241Assert.Equal(0, control.SelectedIndex); 3246Assert.Equal(-1, control.SelectedIndex); 3252Assert.Equal(1, control.SelectedIndex); 3364Assert.Equal(-1, control.SelectedIndex); 3373Assert.Equal(-1, control.SelectedIndex); 3402Assert.Equal(-1, control.SelectedIndex); 3411Assert.Equal(-1, control.SelectedIndex); 3431Assert.Equal(1, control.SelectedIndex); 3440Assert.Equal(1, control.SelectedIndex); 3449Assert.Equal(1, control.SelectedIndex); 3467Assert.Equal(-1, control.SelectedIndex); 3476Assert.Equal(-1, control.SelectedIndex); 3485Assert.Equal(1, control.SelectedIndex); 3509Assert.Equal(0, control.SelectedIndex); 3518Assert.Equal(0, control.SelectedIndex); 3527Assert.Equal(0, control.SelectedIndex); 3551Assert.Equal(-1, control.SelectedIndex); 3560Assert.Equal(-1, control.SelectedIndex); 3569Assert.Equal(0, control.SelectedIndex); 3594Assert.Equal(-1, control.SelectedIndex); 3605Assert.Equal(-1, control.SelectedIndex); 3656Assert.Equal(-1, control.SelectedIndex); 3668Assert.Equal(-1, control.SelectedIndex); 3698Assert.Equal(1, control.SelectedIndex); 3710Assert.Equal(1, control.SelectedIndex); 3722Assert.Equal(1, control.SelectedIndex); 3750Assert.Equal(-1, control.SelectedIndex); 3762Assert.Equal(-1, control.SelectedIndex); 3774Assert.Equal(-1, control.SelectedIndex); 3808Assert.Equal(1, control.SelectedIndex); 3820Assert.Equal(1, control.SelectedIndex); 3832Assert.Equal(1, control.SelectedIndex); 3866Assert.Equal(-1, control.SelectedIndex); 3878Assert.Equal(-1, control.SelectedIndex); 3890Assert.Equal(-1, control.SelectedIndex); 4122Assert.Equal(-1, control.SelectedIndex); 4128Assert.Equal(-1, control.SelectedIndex); 4170Assert.Equal(expectedSelectedIndex, control.SelectedIndex); 4176Assert.Equal(expectedSelectedIndex, control.SelectedIndex); 4222Assert.Equal(expectedSelectedIndex, control.SelectedIndex); 4228Assert.Equal(expectedSelectedIndex, control.SelectedIndex); 4247Assert.Equal(-1, control.SelectedIndex); 4256Assert.Equal(-1, control.SelectedIndex); 6126Assert.Equal(0, listBox.SelectedIndex); 6134Assert.Equal(0, listBox.SelectedIndex); 6142Assert.Equal(0, listBox.SelectedIndex); 6168Assert.Equal(0, listBox.SelectedIndex); 6176Assert.Equal(0, listBox.SelectedIndex); 6184Assert.Equal(0, listBox.SelectedIndex); 6209Assert.Equal(0, listBox.SelectedIndex); 6218Assert.Equal(-1, listBox.SelectedIndex); 6245Assert.Equal(0, listBox.SelectedIndex); 6255Assert.Equal(-1, listBox.SelectedIndex);