private void OnAlertButtonClick(EEditProfileAlertType alertType)
 {
     if (alertType == EEditProfileAlertType.SuccessMessage)
     {
         _router.GoBack();
     }
 }
示例#2
0
        public void ShowAlert(string message, string btnOkTitle, EEditProfileAlertType alertType)
        {
            var alertVC = UIAlertController.Create("", message, UIAlertControllerStyle.Alert);

            alertVC.AddAction(UIAlertAction.Create(btnOkTitle, UIAlertActionStyle.Default, action => { AlertButtonClick?.Invoke(alertType); }));

            var currVC = GetViewController?.Invoke(this);

            currVC?.PresentViewController(alertVC, true, null);
        }
示例#3
0
 public void ShowAlert(string message, string btnOkTitle, EEditProfileAlertType alertType)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         AlertDialog.Builder alert = new AlertDialog.Builder(Context);
         alert.SetMessage(message);
         alert.SetPositiveButton(btnOkTitle, (senderAlert, args) => { AlertButtonClick?.Invoke(alertType); });
         Dialog dialog = alert.Create();
         dialog.Show();
     });
 }