public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. //For my PCL Demo pcl.Core.Maths math = new pcl.Core.Maths(); var result = math.AddMe(3, 5); Console.WriteLine("My result is: " + result); //End My PCL }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // 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); //For my PCL Demo pcl.Core.Maths math = new pcl.Core.Maths(); var result = math.AddMe(3, 5); Console.WriteLine("My result is: " + result); //End My PCL button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); }; }