void MoveToNextPage() { if (CurrentPage.CanMoveToNextPage() && this.CanMoveToNextPage) { if (this.CurrentPageIndex < this.Pages.Count - 1) { this.CurrentPage = this.Pages[this.CurrentPageIndex + 1]; } else { this.OnRequestClose(); } } }
void MoveToNextPage() { if (CurrentPage.CanMoveToNextPage() && this.CanMoveToNextPage) { if (this.CurrentPageIndex < this.Pages.Count - 1) { this.CurrentPage = this.Pages[this.CurrentPageIndex + 1]; } else { this.OnRequestClose(); } } }