public static void ShowLoader() { loaderDialog = new SweetAlertDialog(_context, SweetAlertDialog.ProgressType); loaderDialog.SetTitleText("Loading"); loaderDialog.ShowCancelButton(false); loaderDialog.Show(); }
private void ShowLoading() { loaderDialog = new SweetAlertDialog(this, SweetAlertDialog.ProgressType); loaderDialog.SetTitleText("Finding the nearest Oyadieyie..."); loaderDialog.ShowCancelButton(false); loaderDialog.Show(); }
private void ShowLoading() { loaderDialog = new SweetAlertDialog(this, SweetAlertDialog.ProgressType); loaderDialog.SetTitleText("Loading"); loaderDialog.ShowCancelButton(false); loaderDialog.Show(); }
private void ShowSuccess() { var sweetprogress = new SweetAlertDialog(this, SweetAlertDialog.SuccessType); sweetprogress.SetTitleText("Success"); sweetprogress.SetConfirmText("OK"); sweetprogress.SetConfirmClickListener(null); sweetprogress.ShowCancelButton(false); sweetprogress.Show(); }
public static void ShowSuccess() { var successDialog = new SweetAlertDialog(_context, SweetAlertDialog.SuccessType); successDialog.SetTitleText("Success"); successDialog.SetConfirmText("OK"); successDialog.ShowCancelButton(false); successDialog.SetConfirmClickListener(null); successDialog.Show(); }
public static void ShowInfo(string info) { infoDialog = new SweetAlertDialog(_context, SweetAlertDialog.NormalType); infoDialog.SetTitleText("Info"); infoDialog.SetContentText(info); infoDialog.SetConfirmText("OK"); infoDialog.ShowCancelButton(false); infoDialog.SetConfirmClickListener(null); infoDialog.Show(); }
public static void ShowWarning(string warn) { var warnDialog = new SweetAlertDialog(_context, SweetAlertDialog.WarningType); warnDialog.SetTitleText("Warning"); warnDialog.SetContentText(warn); warnDialog.SetConfirmText("OK"); warnDialog.ShowCancelButton(false); warnDialog.SetConfirmClickListener(null); warnDialog.Show(); }
public static void ShowError(string title, string message) { var errorDialog = new SweetAlertDialog(_context, SweetAlertDialog.ErrorType); errorDialog.SetTitleText(title); errorDialog.SetContentText(message); errorDialog.SetConfirmText("OK"); errorDialog.ShowCancelButton(false); errorDialog.SetConfirmClickListener(null); errorDialog.Show(); }
public static void ShowErrorDialog(string errorMessage) { errorDialog = new SweetAlertDialog(_context, SweetAlertDialog.ErrorType); errorDialog.SetCancelable(false); errorDialog.SetTitleText("Oops..."); errorDialog.SetContentText(errorMessage); errorDialog.SetConfirmText("OK"); errorDialog.ShowCancelButton(false); errorDialog.SetConfirmClickListener(new SweetConfirmClick(d => { errorDialog.DismissWithAnimation(); errorDialog = null; })); errorDialog.Show(); }