示例#1
0
 /// <summary>
 /// Sets the owner of the current list view item.
 /// </summary>
 /// <param name="listview"></param>
 public void SetOwner(ListViewGrid listview)
 {
     if (_listview == null)
     {
         _listview = listview;
     }
     else
     {
         if (_listview != listview)
         {
             throw new InvalidOperationException("Cannot switch listview item's owner.");
         }
     }
 }
示例#2
0
 /// <summary>
 /// Creates a new instance of ListViewGridItemCollection.
 /// </summary>
 /// <param name="owner"></param>
 public ListViewGridItemCollection(ListViewGrid owner)
 {
     _listview = owner;
 }