/// <summary> /// Constructor /// </summary> /// <param name = "parent"></param> public CListItem(CListView parent) { m_SubItems = new GLSubItemCollection(parent); m_SubItems.Parent = parent; Parent = parent; // this has to be after the sub item set becuase it tries to use the subitems SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created }
/// <summary> /// Constructor /// </summary> public CListItem() { if (Parent != null) { m_SubItems = new GLSubItemCollection(Parent); } else { m_SubItems = new GLSubItemCollection(); } SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created }
/// <summary> /// Constructor /// </summary> public CListItem() { if (Parent != null) m_SubItems = new GLSubItemCollection(Parent); else m_SubItems = new GLSubItemCollection(); SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created }