本文整理汇总了C#中Mission.isForfeitable方法的典型用法代码示例。如果您正苦于以下问题:C# Mission.isForfeitable方法的具体用法?C# Mission.isForfeitable怎么用?C# Mission.isForfeitable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mission
的用法示例。
在下文中一共展示了Mission.isForfeitable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setMission
public void setMission(Mission mission)
{
m_mission = mission;
guiIdTxt.Text = m_mission.getId();
guiTypeCbo.SelectedItem = m_mission.getType();
guiKeyTxt.Text = m_mission.getKey();
guiNameTxt.Text = m_mission.getName();
guiSummaryTxt.Text = m_mission.getSummary();
guiTimeTxt.Text = m_mission.getAllowedTime().ToString();
guiForfeitableChk.Checked = m_mission.isForfeitable();
guiConditionsTbl.Items.Clear();
if (m_mission.hasConditions())
{
foreach (Condition condition in m_mission.getConditions())
{
ListViewItem item = new ListViewItem(new String[] { condition.getConditionType().ToString(),
condition.getFormattedValue() });
guiConditionsTbl.Items.Add(item);
item.Tag = condition;
}
guiConditionsTbl.Items[0].Selected = true;
}
guiStagesTbl.Items.Clear();
if (m_mission.hasStages())
{
foreach (Stage stage in m_mission.getStages())
{
ListViewItem item = new ListViewItem(new String[] { stage.getId(),
stage.getDescription() });
guiStagesTbl.Items.Add(item);
item.Tag = stage;
}
guiStagesTbl.Items[0].Selected = true;
}
}