Catrobat.IDE.WindowsPhone.Controls.ListsViewControls.CatrobatListView.CatrobatListViewMisc.CatrobatListViewWorker.SetItemsSelectedStyle C# (CSharp) Method

SetItemsSelectedStyle() private method

private SetItemsSelectedStyle ( IList itemsList ) : void
itemsList IList
return void
        private void SetItemsSelectedStyle(IList itemsList)
        {
            for (int i = 0; i < itemsList.Count; i++)
            {
                var tmpItem = ContainerFromItem(itemsList[i]) as CatrobatListViewItem;
                if (tmpItem == null)
                {
                    continue;
                }
                if (SmartSelectedItems.Contains(itemsList[i]))
                {
                    tmpItem.SetSelected();
                }
                else
                {
                    tmpItem.SetUnselected();
                }
            }
        }