public OutlinerNote(OutlinerDocument document, OutlinerNoteCollection Subnotes) { this.__Document = document; this.__Parent = null; __IsDocumentRoot = true; this.__Subnotes = Subnotes; this.__Subnotes.Collection.CollectionChanged += new NotifyCollectionChangedEventHandler(Collection_CollectionChanged); Id = s_id; s_id += 1; CreateColumnData(); }
public OutlinerNote(OutlinerNote parent) { this.__Document = parent.Document; this.__Parent = parent; this.__Subnotes = new OutlinerNoteCollection(); this.__Subnotes.Collection.CollectionChanged += new NotifyCollectionChangedEventHandler(Collection_CollectionChanged); CreateColumnData(); Id = s_id; s_id += 1; }