Esempio n. 1
0
 private void RemoveContent(ContentWrapper contentWrapper)
 {
     Contract.Requires(contentWrapper != null);
     Util.ThrowUnless(!_content.Contains(contentWrapper), "The content wrapper should already be removed");
     Util.ThrowUnless(_contentElement != null && _contentElement.Children.Contains(contentWrapper));
     contentWrapper.ClearChild();
     _contentElement.Children.Remove(contentWrapper);
 }
Esempio n. 2
0
 private void RemoveContent(ContentWrapper contentWrapper)
 {
     Contract.Requires(contentWrapper != null);
     Util.ThrowUnless(!_content.Contains(contentWrapper), "The content wrapper should already be removed");
     Util.ThrowUnless(_contentElement != null && _contentElement.Children.Contains(contentWrapper));
     contentWrapper.ClearChild();
     _contentElement.Children.Remove(contentWrapper);
 }