public override void ViewDidLoad() { base.ViewDidLoad(); buttonPay = new UIButton(UIButtonType.RoundedRect); buttonPay.Frame = new CGRect(0, 100, (float)View.Frame.Width, 40); buttonPay.SetTitle("Create Pay Payment", UIControlState.Normal); buttonPay.TouchUpInside += (sender, e) => BeginPayment(); buttonCcPay = new UIButton(UIButtonType.RoundedRect); buttonCcPay.Frame = new CGRect(0, 160, (float)View.Frame.Width, 40); buttonCcPay.SetTitle("Create Credit Card Payment", UIControlState.Normal); buttonCcPay.TouchUpInside += (sender, e) => { ccViewController = new CreditCardInputViewController(); NavigationController.PushViewController(ccViewController, true); }; View.BackgroundColor = UIColor.White; View.AddSubview(buttonPay); View.AddSubview(buttonCcPay); }
public override void ViewDidLoad () { base.ViewDidLoad (); buttonPay = new UIButton (UIButtonType.RoundedRect); buttonPay.Frame = new CGRect (0, 100, (float)View.Frame.Width, 40); buttonPay.SetTitle ("Create Pay Payment", UIControlState.Normal); buttonPay.TouchUpInside += (sender, e) => BeginPayment (); buttonCcPay = new UIButton (UIButtonType.RoundedRect); buttonCcPay.Frame = new CGRect (0, 160, (float)View.Frame.Width, 40); buttonCcPay.SetTitle ("Create Credit Card Payment", UIControlState.Normal); buttonCcPay.TouchUpInside += (sender, e) => { ccViewController = new CreditCardInputViewController (); NavigationController.PushViewController (ccViewController, true); }; View.BackgroundColor = UIColor.White; View.AddSubview (buttonPay); View.AddSubview (buttonCcPay); }