protected override void OnCreate (Bundle savedInstanceState) { base.OnCreate (savedInstanceState); MainManager = new PayPalManager (this); // Set our view from the "main" layout resource SetContentView (Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById<Button> (Resource.Id.myButton); button.Click += Button_Click; }