Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 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();
         }
     });
 }