button1.TouchUpInside += (sender, e) => { var alert = UIAlertController.Create("", "こんぼう をすてますか?", UIAlertControllerStyle.Alert); alert.AddAction(UIAlertAction.Create("はい", UIAlertActionStyle.Default, x=> label1.Text = "こんぼう をすてました")); alert.AddAction(UIAlertAction.Create("いいえ", UIAlertActionStyle.Default, x=> {})); this.PresentViewController(alert, true, null); }; button1.TouchUpInside += (sender
