Exemplo n.º 1
0
 void LaunchAlert()
 {
     var cancelAction = new CRSAlertAction {
         Text = "Cancel",
     };
     var acceptAction = new CRSAlertAction {
         Text = "Accept",
         Highlighted = true,
         DidSelect = (alert) => {
             _text.Text = _preAcceptText + _postAcceptText;
         }
     };
     var alertView = new CRSAlertView {
         Title = "Sample Alert",
         Message = "This is pretty sweet huh? Thanks for taking the time to sample this project. Click accept if you accept that you're an extremely awesome individual.",
         Actions = new CRSAlertAction[]{ cancelAction, acceptAction },
         Image = UIImage.FromBundle("logo_black.png")
     };
     alertView.Show ();
 }
Exemplo n.º 2
0
        void LaunchAlert()
        {
            var cancelAction = new CRSAlertAction {
                Text = "Cancel",
            };
            var acceptAction = new CRSAlertAction {
                Text        = "Accept",
                Highlighted = true,
                DidSelect   = (alert) => {
                    _text.Text = _preAcceptText + _postAcceptText;
                }
            };
            var alertView = new CRSAlertView {
                Title   = "Sample Alert",
                Message = "This is pretty sweet huh? Thanks for taking the time to sample this project. Click accept if you accept that you're an extremely awesome individual.",
                Actions = new CRSAlertAction[] { cancelAction, acceptAction },
                Image   = UIImage.FromBundle("logo_black.png")
            };

            alertView.Show();
        }