public PageCollection(IFlags flags, IElementFactory elementFactory) : base(flags) { this.AppendChild(elementFactory.CreatePage(flags)); this.frame = (IFrame)Global.FrameProvider.CreateFrame(FrameType.Frame, GenerateFrameName("GHD_DocumentPageCollection")); }