When i delete a feature, I always ask our users if they are sure before I progress to delete or rollback in the OnRowDeleteEvent of my module.
args.CancelEdit(() => Task.FromResult(true));
args.CancelEdit(() => Task.FromResult(false));
But now it seems that the progressor comes up after my message box has already been shown. My code is waiting for the result of the message box, so this "Deleting Selected Features" must be popping up on some type of out of the box code. Is there a way to suppress this Progressor or maybe I need to take another approach now?
Before
Now
MessageBoxResult mbr = ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Are you sure you want to Delete this Feature?", "Confirm Delete",
MessageBoxButton.YesNo, MessageBoxImage.Warning);
if (mbr.Equals(MessageBoxResult.Yes))
{