/// <summary> /// Sends the alert. /// </summary> /// <param name="sender">The sender.</param> /// <param name="caption">The caption.</param> /// <param name="message">The message.</param> /// <param name="positiveButton">The positive button.</param> /// <param name="negativeButton">The negative button.</param> /// <returns>System.Threading.Tasks.TaskCompletionSource<System.Boolean>.</returns> public static TaskCompletionSource <bool> SendAlert(Page sender, string caption, string message, string positiveButton, string negativeButton) { var argument = ArgumentsProxyFactory.CreateAlertArgument(caption, message, positiveButton, negativeButton); SendAlert(sender, argument); return(argument.Result); }