Interaction logic for ConfirmationDialog.xaml
Inheritance: System.Windows.Controls.UserControl
Exemple #1
0
        private async Task <bool> Confirm()
        {
            var dialog = new ConfirmationDialog
            {
                MessageTextBlock =
                {
                    Text = "Are you sure you wish to do this?  " + currentResult.Files.Count +
                           " files will be permanently deleted."
                }
            };
            var result = await DialogHost.Show(dialog);

            return("1".Equals(result));
        }
 private async Task<bool> Confirm()
 {
     var dialog = new ConfirmationDialog
     {
         MessageTextBlock =
         {
             Text = "Are you sure you wish to do this?  " + currentResult.Files.Count +
                    " files will be permanently deleted."
         }
     };
     var result = await DialogHost.Show(dialog);
     return "1".Equals(result);
 }