コード例 #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();
        }
コード例 #2
0
ファイル: CRSAlertView.cs プロジェクト: FrederickEskens/Totem
 public AlertViewController(CRSAlertView alert)
 {
     _alert = alert;
 }
コード例 #3
0
ファイル: CRSAlertView.cs プロジェクト: Runesmacher/Totemapp
 public AlertViewController(CRSAlertView alert)
 {
     _alert = alert;
 }
コード例 #4
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();
 }