Пример #1
0
 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 :)");
     }
 }
Пример #2
0
 static void OnInputConfirmed(string inputValue)
 {
     if (inputValue == "")
     {
         SweetAlert.ShowInputError("You need to write something!");
     }
     else
     {
         SweetAlert.Success("Nice!", "you wrote: " + inputValue);
     }
 }