Esempio n. 1
0
 void _frames_Removed(object sender, TrackedBindingListEventArgs<DocumentFrame> e)
 {
     e.Item.Document = null;
 }
Esempio n. 2
0
 void _items_Removed(object sender, TrackedBindingListEventArgs<ListingItem> e)
 {
     e.Item.Parent = null;
 }
Esempio n. 3
0
        void _frames_Added(object sender, TrackedBindingListEventArgs<DocumentFrame> e)
        {
            if (e.Item.Document != null) throw new InvalidOperationException();

            e.Item.Document = this;
        }
Esempio n. 4
0
 void _declarations_Removed(object sender, TrackedBindingListEventArgs<Declaration> e)
 {
     e.Item.Parent = null;
 }
Esempio n. 5
0
 void _items_Added(object sender, TrackedBindingListEventArgs<ListingItem> e)
 {
     // This actually violates the (implicit) invariant that a parent of a node has that node as a child,
     // and not just as a descendant:
     e.Item.Parent = this.Parent;
 }
Esempio n. 6
0
 void _declarations_Added(object sender, TrackedBindingListEventArgs<Declaration> e)
 {
     e.Item.Parent = this;
 }
Esempio n. 7
0
 void _blocks_Removed(object sender, TrackedBindingListEventArgs<Block> e)
 {
     e.Item.Parent = null;
 }
Esempio n. 8
0
 void _blocks_Added(object sender, TrackedBindingListEventArgs<Block> e)
 {
     e.Item.Parent = this;
 }
Esempio n. 9
0
 void _members_Removed(object sender, TrackedBindingListEventArgs<EnumerationMember> e)
 {
     e.Item.Parent = null;
 }
Esempio n. 10
0
 void _members_Added(object sender, TrackedBindingListEventArgs<EnumerationMember> e)
 {
     e.Item.Parent = this;
 }