public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. HelloButton.TouchUpInside += (object sender, EventArgs e) => { var greetings = new HelloLib(); var message = greetings.SayHello("Fiqri Ismail"); //Create an alert box var greetingsAlert = UIAlertController.Create("Hello", message, UIAlertControllerStyle.Alert); greetingsAlert.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null)); PresentViewController(greetingsAlert, true, null); }; }
static void Main() { HelloLib lib = new HelloLib(); lib.SayHello(); }
static void Main(string[] args) { HelloLib.Execute(); }