public void RemoveContentFactory(IPageContentFactory f) { if (this.mContentFactories.ContainsKey(f.Name)) { this.mContentFactories.Remove(f.Name); } }
public PageContent CreateContent(string typeName) { IPageContentFactory fact = GetContentFactory(typeName); if (fact == null) { throw new AxiomException("{0} is not the name of a valid PageContentFactory! PageManager.CreateContent", typeName); } return(fact.CreateInstance()); }
public void AddContentFactory(IPageContentFactory f) { // note - deliberately allowing overriding if (this.mContentFactories.ContainsKey(f.Name)) { this.mContentFactories[f.Name] = f; return; } this.mContentFactories.Add(f.Name, f); }
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 } }
public PageContent(IPageContentFactory creator) { this.mCreator = creator; }
/// <summary> /// /// </summary> /// <param name="creator"></param> public PageContent(IPageContentFactory creator) { mCreator = creator; }
public void RemoveContentFactory( IPageContentFactory f ) { if ( this.mContentFactories.ContainsKey( f.Name ) ) { this.mContentFactories.Remove( f.Name ); } }
public void AddContentFactory( IPageContentFactory f ) { // note - deliberately allowing overriding if ( this.mContentFactories.ContainsKey( f.Name ) ) { this.mContentFactories[ f.Name ] = f; return; } this.mContentFactories.Add( f.Name, f ); }
/// <summary> /// /// </summary> /// <param name="f"></param> public void RemoveContentFactory(IPageContentFactory f) { mContentFactories.Remove(f.Name); }
/// <summary> /// /// </summary> /// <param name="f"></param> public void AddContentFactory(IPageContentFactory f) { // note - deliberately allowing overriding if (mContentFactories.ContainsKey(f.Name)) mContentFactories.Remove(f.Name); mContentFactories.Add(f.Name, f); }