public interbook() { this.Tail = new interpage(this); this.Tail.Visible = true; this.Head = this.Tail; InitializeComponent(); }
public void addPage() { interpage Page = new interpage(this); interpage Node = this.Tail; while (Node.NextPage != null) { Node = Node.NextPage; } Node.NextPage = Page; Page.PreviousPage = Node; this.Head = Page; }
public void setActivePageAt(int index) { interpage Node = new interpage(); Node = this.Tail; int i = 0; for (i = 0; i <= index; i++) { if (Node.NextPage != null) { Node.Visible = false; Node = Node.NextPage; } } this.currentPage = index; Node.Visible = true; }