public override PageModel this[int pageNO] { get { if (pageNO < 0 || pageNO >= Count) { return(PageModelFactory.CreatePageModel()); } return(base[pageNO]); } }
public virtual void AppendPage() { MakeLastPageBreak(); // TODO-Later: Layout of New Page is the same with LastPage // TODO-Later£º PageRepository use LayoutFactory.CreateDefaultLayout(), Depends on File system, not good to UT // TODO-Later: Make Project Model not Dependent on Project Adapters Add(PageModelFactory.CreatePageModel(LayoutFactory.CreateDefaultLayout())); var lastPageNO = Count - 1; FocusIndex = lastPageNO; PageChange(lastPageNO); }