本文整理汇总了C#中BrightIdeasSoftware.ObjectListView.SetObjects方法的典型用法代码示例。如果您正苦于以下问题:C# ObjectListView.SetObjects方法的具体用法?C# ObjectListView.SetObjects怎么用?C# ObjectListView.SetObjects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BrightIdeasSoftware.ObjectListView
的用法示例。
在下文中一共展示了ObjectListView.SetObjects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StringListPutHelper
private void StringListPutHelper(ObjectListView list_view, List<string> l, object row_object, object value)
{
for (int i = 0, count = l.Count; i < count; ++i)
{
if (Object.ReferenceEquals(row_object, l[i]))
{
l[i] = (string)value;
break;
}
}
list_view.SetObjects(l, true);
}
示例2: TraitViewManager
public TraitViewManager(FormGrangerMain mainForm, GrangerContext context, ObjectListView listview)
{
MainForm = mainForm;
Context = context;
OLV = listview;
OLV.FormatRow += OLV_FormatRow;
AllTraits = HorseTrait.GetAllTraitEnums().Select(x => new HorseTrait(x)).ToArray();
BuildClearTraitView();
listview.SetObjects(Items);
Decide();
MainForm.Granger_SelectedSingleHorseChanged += MainForm_Granger_SelectedHorsesChanged;
MainForm.Granger_ValuatorChanged += MainForm_Granger_ValuatorChanged;
MainForm.Granger_TraitViewDisplayModeChanged += MainForm_Granger_TraitViewDisplayModeChanged;
Context.OnHerdsModified += Context_OnHerdsModified;
Context.OnHorsesModified += Context_OnHorsesModified;
Context.OnTraitValuesModified += Context_OnTraitValuesModified;
}