{
IList* pSeletedIndexList = pArgs;
int loopCount = pSeletedIndexList->GetCount();
- for (int i = 0; i < loopCount; ++i)
+ if (__pContentIconListView != null)
{
- int index = static_cast<Integer*>(pSeletedIndexList->GetAt(i))->ToInt();
- __pContentIconListView->SetItemChecked(index, true);
+ for (int i = 0; i < loopCount; ++i)
+ {
+ int index = static_cast<Integer*>(pSeletedIndexList->GetAt(i))->ToInt();
+ __pContentIconListView->SetItemChecked(index, true);
+ }
+ __pContentIconListView->RequestRedraw(true);
}
- __pContentIconListView->RequestRedraw(true);
}
}