Interface definition for a unit of content within a page.
Inheritance: Axiom.Core.DisposableObject
		public virtual void DestroyContent( PageContent c )
		{
			if ( this.mContentList.Contains( c ) )
			{
				this.mContentList.Remove( c );
			}

			Manager.DestroyContent( ref c );
		}
 /// <summary>
 /// 
 /// </summary>
 /// <param name="content"></param>
 public virtual void AttachContent(PageContent content)
 {
     mContentList.Add(content);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="pcont"></param>
 public virtual void DestroyContent(PageContent pcont)
 {
     DetachContent(pcont);
     Manager.DestroyContent(pcont);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="content"></param>
 public virtual void DetachContent(PageContent content)
 {
     mContentList.Remove(content);
 }
Ejemplo n.º 5
0
		public void DestroyContent( ref PageContent c )
		{
			IPageContentFactory fact = GetContentFactory( c.Type );
			if ( fact != null )
			{
				fact.DestroyInstance( ref c );
			}
			else
			{
				c.SafeDispose(); // normally a safe fallback
			}
		}
Ejemplo n.º 6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="typeName"></param>
 public void DestroyContent(PageContent c)
 {
     IPageContentFactory fact = GetContentFactory(c.Type);
     if (fact != null)
         fact.DestroyInstance(c);
     else
         c = null;// normally a safe fallback
 }