public static ModalAlertPage ShowAlertWithClose(String msg) { ModalAlertPage popup = new ModalAlertPage(); popup.LblMsg.Text = msg; popup.BtnInfo1.IsVisible = false; popup.BtnClose1.IsVisible = true; PopupNavigation.Instance.PushAsync(popup); return(popup); }
public static ModalAlertPage ShowAlertWithInfoBtn(String msg, String btnText, Action actBtnClicked) { ModalAlertPage popup = new ModalAlertPage(); popup.LblMsg.Text = msg; popup.BtnInfo1.Text = btnText; popup.BtnClose1.IsVisible = false; popup.BtnInfo1.IsVisible = true; popup.BtnInfo1.Clicked += (sender, args) => actBtnClicked?.Invoke(); PopupNavigation.Instance.PushAsync(popup); return(popup); }