Esempio n. 1
0
		public static void Show(string title, string message)
		{
			using(var alert = new UIAlertView(title, message, null, "OK", null))
			{
				alert.InvokeOnMainThread(() => alert.Show());
			}
		}
Esempio n. 2
0
 public static void Show(string title, string message)
 {
     using (var alert = new UIAlertView(title, message, null, "OK", null))
     {
         alert.InvokeOnMainThread(() => alert.Show());
     }
 }
Esempio n. 3
0
        public static void Show(string message, int timeout)
        {
            var timer = new System.Timers.Timer (timeout);
            var alert = new UIAlertView{ Message = message };

            timer.Elapsed += delegate {
                timer.Stop ();
                alert.InvokeOnMainThread (delegate {
                    alert.DismissWithClickedButtonIndex (0, animated:true);
                });
            };
            alert.Show ();
            timer.Start ();
        }
Esempio n. 4
0
        public void Show(string title, string message)
        {
            var alert = new UIAlertView();

            alert.InvokeOnMainThread(() =>
            {
                alert.Message        = message;
                alert.Title          = title;
                alert.AlertViewStyle = UIAlertViewStyle.Default;
                alert.AddButton("OK");
                alert.CancelButtonIndex = 0;
                alert.Clicked          += delegate(object sender, UIButtonEventArgs btnArgs)
                {
                    if (btnArgs.ButtonIndex == 1)
                    {
                    }
                };
                alert.Show();
            });
        }
Esempio n. 5
0
        public void ShowMessage(string title, string message, string button)
        {
            var view = new UIAlertView(title, message, null, button);

            view.InvokeOnMainThread(view.Show);
        }