123456789101112131415161718 |
- using PixiEditor.Models.Enums;
- using PixiEditor.Views;
- namespace PixiEditor.Models.Dialogs
- {
- public static class ConfirmationDialog
- {
- public static ConfirmationType Show(string message)
- {
- var popup = new ConfirmationPopup
- {
- Body = message
- };
- if ((bool) popup.ShowDialog()) return popup.Result ? ConfirmationType.Yes : ConfirmationType.No;
- return ConfirmationType.Canceled;
- }
- }
- }
|