public override void ViewDidLoad() { base.ViewDidLoad(); // Testing CGRect rect = new CGRect(0, 0, 200, 200); Console.WriteLine("Rectangle Area: {0}", Transformations.CalculateArea(rect)); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Use shared code methog "CalculateArea" var rect = new RectangleF(0, 0, 200, 200); Console.WriteLine("Rectangle Area: {0}", Transformations.CalculateArea(rect)); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById <Button> (Resource.Id.myButton); button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); }; }