private void Button_Click(object sender, RoutedEventArgs e) { CPNativeNoForm.MyClass myClass; myClass = new MyClass(); btnClick.Content = myClass.AddInt(ref count); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. Button.AccessibilityIdentifier = "myButton"; //Button.TouchUpInside += delegate //{ // var title = string.Format("{0} clicks!", count++); // Button.SetTitle(title, UIControlState.Normal); //}; CPNativeNoForm.MyClass myClass; myClass = new MyClass(); Button.TouchUpInside += delegate { Button.SetTitle(myClass.AddInt(ref count), UIControlState.Normal); }; }