130 references to Items
System.Messaging (3)
System\Messaging\Design\QueuePathDialog.cs (3)
230this.pathType.Items.Add(Res.GetString(Res.RefByPath)); 231this.pathType.Items.Add(Res.GetString(Res.RefByFormatName)); 232this.pathType.Items.Add(Res.GetString(Res.RefByLabel));
System.Web.Entity.Design (7)
System\Data\WebControls\Design\EntityDataSourceConfigureObjectContextPanel.cs (3)
363_containerNameComboBox.Items.Clear(); 364_containerNameComboBox.Items.AddRange(containerNames.ToArray()); 371_namedConnectionComboBox.Items.AddRange(namedConnections.ToArray());
System\Data\WebControls\Design\EntityDataSourceDataSelectionPanel.cs (4)
273_entitySetComboBox.Items.Clear(); 274_entitySetComboBox.Items.AddRange(entitySetNames.ToArray()); 305_entityTypeFilterComboBox.Items.Clear(); 306_entityTypeFilterComboBox.Items.AddRange(entityTypeFilters.ToArray());
System.Web.Mobile (54)
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (11)
244_cbAvailableFilters.Items.Clear(); 251_cbAvailableFilters.Items.Add(node); 361if (_cbAvailableFilters.Items.Count > 0) 364(DeviceFilterNode) _cbAvailableFilters.Items[0]; 383int index = _cbAvailableFilters.Items.IndexOf(currentFilter); 384if((index + 1) < _cbAvailableFilters.Items.Count) 387_cbAvailableFilters.Items[index + 1]; 392_cbAvailableFilters.Items[index - 1]; 407foreach(DeviceFilterNode filter in _cbAvailableFilters.Items) 461_cbAvailableFilters.Items.Add(CreateExternalFilter("")); 526_cbAvailableFilters.Items.Remove(filter);
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (1)
316_cbCompare.Items.Add(property.Name);
UI\MobileControls\Design\ListGeneralPage.cs (2)
129_decorationCombo.Items.AddRange(new object[] { 171_selectTypeCombo.Items.AddRange(new object[] {
UI\MobileControls\Design\ObjectListCommandsPage.cs (2)
166_cmbDefaultCommand.Items.Clear(); 169_cmbDefaultCommand.Items.Add(commandNode.Name);
UI\MobileControls\Design\ObjectListFieldsPage.cs (2)
161_cmbDataField.Items.Clear(); 189_cmbDataField.Items.Add(propDesc.Name);
UI\MobileControls\Design\PropertyOverridesDialog.cs (15)
93_cbChoices.Items.Clear(); 225foreach(ChoiceTreeNode choiceNode in _cbChoices.Items) 256_cbChoices.Items.Add(newChoiceNode); 266_cbChoices.Items 303if(_cbChoices.SelectedItem == null && _cbChoices.Items.Count > 0) 305_cbChoices.SelectedItem = _cbChoices.Items[0]; 432_cbChoices.Items.Clear(); 567if (_cbChoices.Items.Count > 0) 570foreach (ChoiceTreeNode choiceNode in _cbChoices.Items) 583_cbChoices.Items.Clear(); 1204foreach(Object o in comboBox.Items) 1214comboBox.Items.Clear(); 1215comboBox.Items.AddRange(_cachedComboBox.ToArray()); 1218int index = comboBox.Items.IndexOf(selectedItem); 1221comboBox.SelectedItem = comboBox.Items[index];
UI\MobileControls\Design\StyleSheetDesigner.cs (5)
865_mergedUI.CbStyles.Items.Clear(); 872_mergedUI.CbStyles.Items.Add(style.Name); 875if (_mergedUI.CbStyles.Items.Count > 0) 882_mergedUI.CbStyles.Enabled = (_mergedUI.CbStyles.Items.Count > 0); 966if (_mergedUI.CbStyles.Items.Count == 0)
UI\MobileControls\Design\TemplatingOptionsDialog.cs (11)
178_cmbChoices.Items.Clear(); 182_cmbChoices.Items.Add(SR.GetString(SR.DeviceFilter_NoChoice)); 187if (_cmbChoices.Items.Count > 0) 201_cmbChoices.Items.Add(SR.GetString(SR.DeviceFilter_DefaultChoice)); 209_cmbChoices.Items.Add(DesignerUtility.ChoiceToUniqueIdentifier(choice)); 226Debug.Assert(_cmbChoices.Items.Count > 0); 236_cmbSchemas.Items.Clear(); 383foreach (Object obj in cmb.Items) 396_cmbChoices.Enabled = (_cmbChoices.Items.Count > 0); 397_cmbSchemas.Enabled = (_cmbChoices.Items.Count > 1) && 516_cmbSchemas.Items.Remove(UrlToFriendlySchema(previousUrlSchema));
UI\MobileControls\Design\Util\UnsettableComboBox.cs (5)
90Items.Add(item); 95if (Items.Count == 0) 97Items.Add(notSetText); 119Items.Clear(); 123Items.Add(notSetText);
System.Windows.Forms (25)
winforms\Managed\System\WinForms\ComboBox.cs (22)
951int itemCount = Items.Count + 1; 1088return (index == -1) ? null : Items[index]; 1550Items.AddRangeInternal(value); 2088return FindStringInternal(s, Items, startIndex, false); 2131return FindStringInternal(s, Items, startIndex, true, ignorecase); 2230if (this.Items.Count > 0) { 2244if (this.Items.Count > 0) { 2935Items.ClearInternal(); 3053Items.AddRangeInternal(newItems); 3077Items.SetItemInternal(index, Items[index]); 3195stringSource = new StringSource(GetStringsForAutoComplete(Items)); 3202stringSource.RefreshList(GetStringsForAutoComplete(Items)); 3289Items.ClearInternal(); 3290Items.AddRangeInternal(value); 3326Items.SetItemInternal(index, value); 3399for (int i = 0; i < Items.Count; i++) { 3433object item = Items[SelectedIndex]; 4674return _owningComboBox.Items.IndexOf(_owningItem); 5244if (index < 0 || index >= _owningComboBox.Items.Count) { 5248var item = _owningComboBox.Items[index]; 5254return _owningComboBox.Items.Count;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
1535comboBox.Items.Clear(); 1552comboBox.Items.AddRange(this.Items.InnerArray.ToArray());
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
355return ComboBox.Items;
System.Workflow.Activities (6)
Rules\Design\Dialogs\RuleSetDialog.cs (6)
94this.reevaluationComboBox.Items.Add(Messages.ReevaluationNever); 95this.reevaluationComboBox.Items.Add(Messages.ReevaluationAlways); 97this.chainingBehaviourComboBox.Items.Add(Messages.Sequential); 98this.chainingBehaviourComboBox.Items.Add(Messages.ExplicitUpdateOnly); 99this.chainingBehaviourComboBox.Items.Add(Messages.FullChaining); 437listViewItem.SubItems[2].Text = (string)this.reevaluationComboBox.Items[(int)rule.ReevaluationBehavior];
System.Workflow.ComponentModel (23)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (23)
161this.headerTextComboBox.Items.Add(this.headerFooterNone); 162this.headerTextComboBox.Items.AddRange(this.headerFooterTemplates); 163this.headerTextComboBox.Items.Add(this.headerFooterCustom); 174int userHeaderIndex = this.headerTextComboBox.Items.IndexOf(userHeader); 179this.headerTextComboBox.SelectedIndex = this.headerTextComboBox.Items.IndexOf(this.headerFooterCustom); 188this.headerAlignmentComboBox.Items.AddRange(new object[] { HorizontalAlignment.Left, HorizontalAlignment.Center, HorizontalAlignment.Right }); 189if (this.headerAlignmentComboBox.Items.IndexOf(this.printDocument.PageSetupData.HeaderAlignment) != -1) 197this.footerTextComboBox.Items.Add(this.headerFooterNone); 199this.footerTextComboBox.Items.AddRange(this.headerFooterTemplates); 200this.footerTextComboBox.Items.Add(this.headerFooterCustom); 210int userFooterIndex = this.footerTextComboBox.Items.IndexOf(userFooter); 215this.footerTextComboBox.SelectedIndex = this.footerTextComboBox.Items.IndexOf(this.headerFooterCustom); 224this.footerAlignmentComboBox.Items.AddRange(new object[] { HorizontalAlignment.Left, HorizontalAlignment.Center, HorizontalAlignment.Right }); 225if (this.footerAlignmentComboBox.Items.IndexOf(this.printDocument.PageSetupData.FooterAlignment) != -1) 1146this.paperSizeComboBox.Items.Clear(); 1152this.paperSizeComboBox.Items.Add(paperSize); 1169foreach (PaperSize paperSize in this.paperSizeComboBox.Items) 1183this.paperSizeComboBox.Items.Count > 0) 1185this.paperSizeComboBox.SelectedItem = this.paperSizeComboBox.Items[0] as PaperSize; 1191this.paperSourceComboBox.Items.Clear(); 1195this.paperSourceComboBox.Items.Add(paperSource); 1203this.paperSourceComboBox.Items.Count > 0) 1205this.paperSourceComboBox.SelectedItem = this.paperSourceComboBox.Items[0] as PaperSource;
System.WorkflowServices (4)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (4)
43this.protectionLevelComboBox.Items.Add(SR2.GetString(SR2.UseRuntimeDefaults)); 44this.protectionLevelComboBox.Items.Add(ProtectionLevel.None); 45this.protectionLevelComboBox.Items.Add(ProtectionLevel.Sign); 46this.protectionLevelComboBox.Items.Add(ProtectionLevel.EncryptAndSign);
WsatUI (8)
MMCUI\TraceOptionsForm.cs (8)
102comboBoxTraceLevel.Items.Add(CommandLineOption.TracingCritical); 103comboBoxTraceLevel.Items.Add(CommandLineOption.TracingError); 104comboBoxTraceLevel.Items.Add(CommandLineOption.TracingWarning); 105comboBoxTraceLevel.Items.Add(CommandLineOption.TracingInformation); 106comboBoxTraceLevel.Items.Add(CommandLineOption.TracingVerbose); 107comboBoxTraceLevel.Items.Add(CommandLineOption.TracingAll); 108comboBoxTraceLevel.Items.Add(CommandLineOption.TracingOff); 112foreach (object item in comboBoxTraceLevel.Items)