本文整理汇总了C#中System.Windows.Forms.ComboBox.Reset方法的典型用法代码示例。如果您正苦于以下问题:C# ComboBox.Reset方法的具体用法?C# ComboBox.Reset怎么用?C# ComboBox.Reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ComboBox
的用法示例。
在下文中一共展示了ComboBox.Reset方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowActionTyteCondition
public static void ShowActionTyteCondition(ComboBox combobox, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l3, Label l4)
{
if ((EventType)combobox.SelectedValue.ToInt32() == EventType.ПРИ_ПОЛУЧЕНИИ_ЭМОЦИИ)
{
((GroupBox)combobox.Parent).ResetButton();
l3.Text = l4.Text = string.Empty;
cb3.Reset();
cb4.Reset();
switch ((ConditionType)cb2.SelectedValue.ToUInt32())
{
case ConditionType.ПРИ_НАЛИЧИИ_АУРЫ:
l3.Text = "ID спелла";
new ButtonHandler(cb3, BType.SPELL);
l4.Text = "Время до повтора (мс)";
break;
case ConditionType.ПРИ_НАЛИЧИИ_ПРЕЕДМЕТА:
case ConditionType.ЕСЛИ_ПРЕДМЕТ_НА_ПЕРСОНАЖЕ:
l3.Text = "ID предмета";
new ButtonHandler(cb3, BType.ITEM);
l4.Text = "Количество";
break;
case ConditionType.ЕСЛИ_НАХОДИТСЯ_В_ЗОНЕ:
l3.Text = "ID зоны";
cb3.SetDbcData(DBC.AreaTable);
break;
case ConditionType.ПРИ_НАЛИЧИИ_РЕПУТАЦИИ:
l3.Text = "ID фракции";
cb3.SetDbcData(DBC.Faction);
l4.Text = "Минимальный ранг";
break;
case ConditionType.КОМАНДА:
l3.Text = "Команда";
cb3.SetEnumValues<ConditionTeam>();
break;
case ConditionType.ПРИ_НАЛИЧИИ_УМЕНИЯ:
l3.Text = "ID умения";
cb3.SetDbcData(DBC.SkillLine);
l4.Text = "Минимальный уровень прокачки";
break;
case ConditionType.ЕСЛИ_КВЕСТ_СДАН:
case ConditionType.ЕСЛИ_КВЕСТ_НЕ_СДАН:
l3.Text = "ID квеста";
new ButtonHandler(cb3, BType.QUEST);
break;
case ConditionType.ПРИ_АКТИВНОМ_ЭВЕНТЕ:
l3.Text = "ID эвента";
cb3.SetDbcData(DBC.HolidayNames);
break;
}
cb3.Visible = l3.Text != string.Empty;
cb4.Visible = l4.Text != string.Empty;
}
}
示例2: ShowActionTyteCondition
public static void ShowActionTyteCondition(ComboBox combobox, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l3, Label l4)
{
if ((EventType)combobox.SelectedValue.ToInt32() == EventType.RECEIVE_EMOTE)
{
((GroupBox)combobox.Parent).ResetButton();
l3.Text = l4.Text = string.Empty;
cb3.Reset();
cb4.Reset();
switch ((ConditionType)cb2.SelectedValue.ToUInt32())
{
case ConditionType.AURA:
l3.Text = "SpellID";
new ButtonHandler(cb3, BType.SPELL, null, 0);
l4.Text = "Time to repeat (ms)";
break;
case ConditionType.ITEM:
case ConditionType.ITEM_EQUIPPED:
l3.Text = "ItemID";
new ButtonHandler(cb3, BType.ITEM, null, 0);
l4.Text = "count";
break;
case ConditionType.ZONEID:
l3.Text = "ZoneID";
cb3.SetDbcData(DBC.AreaTable, null);
break;
case ConditionType.REPUTATION_RANK:
l3.Text = "FactionID";
cb3.SetDbcData(DBC.Faction, null);
l4.Text = "Minimum Rank";
break;
case ConditionType.TEAM:
l3.Text = "Team";
cb3.SetEnumValues<ConditionTeam>("", "", true);
break;
case ConditionType.SKILL:
l3.Text = "SkillID";
cb3.SetDbcData(DBC.SkillLine, null);
l4.Text = "Minimum Skill Value";
break;
case ConditionType.QUESTREWARDED:
case ConditionType.QUESTTAKEN:
l3.Text = "QuestId";
new ButtonHandler(cb3, BType.QUEST, null, 0);
break;
case ConditionType.ACTIVE_EVENT:
l3.Text = "EventId";
cb3.SetDbcData(DBC.HolidayNames, null);
break;
}
cb3.Visible = l3.Text != string.Empty;
cb4.Visible = l4.Text != string.Empty;
}
}