private static void ShowActionConfirmation(string message, string title, string imageSource, string okButtonText, string cancelButtonText, Action systemAction) { bool?actionChoice = CairoMessage.ShowOkCancel(message, title, imageSource, okButtonText, cancelButtonText); if (actionChoice.HasValue && actionChoice.Value) { systemAction(); } }
private static void ShowActionConfirmation(string message, string title, CairoMessageImage image, string okButtonText, string cancelButtonText, Action systemAction) { CairoMessage.ShowOkCancel(message, title, image, okButtonText, cancelButtonText, result => { if (result == true) { systemAction(); } }); }