Esempio n. 1
0
        void ShowTipPopup(object sender, EventArgs e)
        {
            var alertView = new CRSAlertView {
                Title   = "Tip",
                Message = _appController.GetRandomTip(),
                Image   = UIImage.FromBundle("SharedAssets/Lamp"),
                Actions = new CRSAlertAction[] { new CRSAlertAction {
                                                     Text = "OK", DidSelect = alert => SetNeedsStatusBarAppearanceUpdate()
                                                 } }
            };

            alertView.Show();
        }
Esempio n. 2
0
 public AlertViewController(CRSAlertView alert)
 {
     _alert = alert;
 }
Esempio n. 3
0
 public AlertViewController(CRSAlertView alert)
 {
     _alert = alert;
 }
 void ShowTipPopup(object sender, EventArgs e)
 {
     var alertView = new CRSAlertView {
         Title = "Tip",
         Message = _appController.GetRandomTip (),
         Image = UIImage.FromBundle("SharedAssets/Lamp"),
         Actions = new CRSAlertAction[] { new CRSAlertAction { Text = "OK", DidSelect = alert => SetNeedsStatusBarAppearanceUpdate () }}
     };
     alertView.Show();
 }