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

            e.Item.Document = this;
        }
示例#4
0
 void _declarations_Removed(object sender, TrackedBindingListEventArgs<Declaration> e)
 {
     e.Item.Parent = null;
 }
示例#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;
 }
示例#6
0
 void _declarations_Added(object sender, TrackedBindingListEventArgs<Declaration> e)
 {
     e.Item.Parent = this;
 }
示例#7
0
 void _blocks_Removed(object sender, TrackedBindingListEventArgs<Block> e)
 {
     e.Item.Parent = null;
 }
示例#8
0
 void _blocks_Added(object sender, TrackedBindingListEventArgs<Block> e)
 {
     e.Item.Parent = this;
 }
示例#9
0
 void _members_Removed(object sender, TrackedBindingListEventArgs<EnumerationMember> e)
 {
     e.Item.Parent = null;
 }
示例#10
0
 void _members_Added(object sender, TrackedBindingListEventArgs<EnumerationMember> e)
 {
     e.Item.Parent = this;
 }