Пример #1
0
        private async Task ExecuteAsync(ConfirmMessageDialogNotification confirmMessageDialogNotification)
        {
            var result = false;
            var msg = new MessageDialog(confirmMessageDialogNotification.Message,
                confirmMessageDialogNotification.Title);
            msg.Commands.Add(new UICommand("Yes", _ => { result = true; }));
            msg.Commands.Add(new UICommand("No", _ => { result = false; }));
            await msg.ShowAsync();

            confirmMessageDialogNotification.Result = result;
        }