示例#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);
     }
 }