Пример #1
0
        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);
            };
        }
Пример #2
0
 static void Main()
 {
     HelloLib lib = new HelloLib();
     lib.SayHello();
 }
Пример #3
0
 static void Main(string[] args)
 {
     HelloLib.Execute();
 }