Habanero.Faces.Win.ListViewCollectionManager.SetListViewCollection C# (CSharp) Method

SetListViewCollection() private method

Adds the business objects in the collection to the ListView. This method is used by SetBusinessObjectCollection.
private SetListViewCollection ( ListView listView, IBusinessObjectCollection collection ) : void
listView System.Windows.Forms.ListView The ListView object to add to
collection IBusinessObjectCollection The business object collection
return void
        private void SetListViewCollection(ListView listView, IBusinessObjectCollection collection)
        {
            Clear(listView);

            foreach (IBusinessObject bo in collection)
            {
                listView.Items.Add(CreateListViewItem(bo));

            }
        }