static void OnConfirmed(bool confirmed) { if (confirmed) { SweetAlert.Success("Deleted!", "Your imaginary file has been deleted."); } else { SweetAlert.Error("Cancelled", "Your imaginary file is safe :)"); } }
static void OnInputConfirmed(string inputValue) { if (inputValue == "") { SweetAlert.ShowInputError("You need to write something!"); } else { SweetAlert.Success("Nice!", "you wrote: " + inputValue); } }