/// <summary> /// initialise the button events /// </summary> public void initButtons() { Button_Login.TouchUpInside += (object sender, EventArgs e) => { ViewController nextPage = this.Storyboard.InstantiateViewController("LoginScreen") as ViewController; this.NavigationController.PushViewController(nextPage, false); }; Button_Signup.TouchUpInside += (object sender, EventArgs e) => { NewAccountControllerA nextPage = this.Storyboard.InstantiateViewController("NewAccountName") as NewAccountControllerA; this.NavigationController.PushViewController(nextPage, false); }; }
/// <summary> /// initialise the button events /// </summary> public void initButtons() { Button_Continue.TouchUpInside += (object sender, EventArgs e) => { NewAccountControllerC nextPage = this.Storyboard.InstantiateViewController("NewAccountPassword") as NewAccountControllerC; this.NavigationController.PushViewController(nextPage, false); }; Back.TouchUpInside += (object sender, EventArgs e) => { NewAccountControllerA lastPage = this.Storyboard.InstantiateViewController("NewAccountName") as NewAccountControllerA; this.NavigationController.PushViewController(lastPage, false); }; }