public static void ShowFailures(List <Failure> failures)
        {
            if (failures == null || failures.Count == 0)
            {
                return;
            }
            var dialog = new FailuresDisplayDialog();

            dialog.FillData(failures);
            //Leave Destroy to Message Service.
            MessageService.ShowCustomDialog(dialog);
        }
        private void DeleteItems(List <ExtendedItem> items)
        {
            List <Failure> failures;

            _currentWorkspace.PendDelete(items.Select(x => (FilePath)x.LocalItem).ToList(), RecursionType.Full, false, out failures);
            if (failures.Any(f => f.SeverityType == SeverityType.Error))
            {
                FailuresDisplayDialog.ShowFailures(failures);
            }
            FireFilesRemoved(items);
            RefreshList(items);
        }
 public static void ShowFailures(List<Failure> failures)
 {
     if (failures == null || failures.Count == 0)
         return;
     var dialog = new FailuresDisplayDialog();
     dialog.FillData(failures);
     //Leave Destroy to Message Service.
     MessageService.ShowCustomDialog(dialog);
 }