protected override void ClearItems()
 {
     if (parent != null)
     {
         List <WorkspaceItem> items = new List <WorkspaceItem> (this);
         foreach (WorkspaceItem it in items)
         {
             it.ParentWorkspace = null;
             parent.NotifyItemRemoved(new WorkspaceItemChangeEventArgs(it, false));
         }
     }
     else
     {
         base.ClearItems();
     }
 }
Example #2
0
 protected override void OnItemsRemoved(IEnumerable <WorkspaceItem> items)
 {
     base.OnItemsRemoved(items);
     if (parent != null)
     {
         foreach (WorkspaceItem it in items)
         {
             it.ParentWorkspace = null;
             parent.NotifyItemRemoved(new WorkspaceItemChangeEventArgs(it, false));
         }
     }
 }