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(); }
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(); }