本文整理汇总了C#中System.Windows.Forms.ToolStripComboBox.BeginUpdate方法的典型用法代码示例。如果您正苦于以下问题:C# ToolStripComboBox.BeginUpdate方法的具体用法?C# ToolStripComboBox.BeginUpdate怎么用?C# ToolStripComboBox.BeginUpdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ToolStripComboBox
的用法示例。
在下文中一共展示了ToolStripComboBox.BeginUpdate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DefaultPickFilter
void IInitializable.Initialize()
{
if (m_pickFilters == null)
{
m_designView.PickFilter = new DefaultPickFilter();
return;
}
m_pickFilterComboBox = new ToolStripComboBox();
m_pickFilterComboBox.BeginUpdate();
m_pickFilterComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
m_pickFilterComboBox.Name = "pickCombo";
m_pickFilterComboBox.ToolTipText = "Picking Filter".Localize();
var defFilter = new DefaultPickFilter();
m_filters.Add(defFilter.Name, defFilter);
m_pickFilterComboBox.Items.Add(defFilter.Name);
foreach (IPickFilter pickFilter in m_pickFilters)
{
m_filters.Add(pickFilter.Name, pickFilter);
m_pickFilterComboBox.Items.Add(pickFilter.Name);
}
m_designView.PickFilter = defFilter;
m_pickFilterComboBox.SelectedIndex = 0;
m_pickFilterComboBox.EndUpdate();
MenuInfo.Edit.GetToolStrip().Items.Add(m_pickFilterComboBox);
m_pickFilterComboBox.SelectedIndexChanged += PickpickFilterComboBox_SelectedIndexChanged;
m_settingsService.RegisterSettings(this,new BoundPropertyDescriptor(this, () => ActivePickFilter, "ActiveFilter",null, null));
}