Esempio n. 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.");
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new instance of ListViewGridItemCollection.
 /// </summary>
 /// <param name="owner"></param>
 public ListViewGridItemCollection(ListViewGrid owner)
 {
     _listview = owner;
 }