AnsweredAssumed Answered

Progressor issue in 2.3 Release?

Question asked by mjk5000 on Oct 17, 2018
Latest reply on Oct 22, 2018 by mjk5000

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.

 

 

//OnRowDeleteEvent 
//PROCEED with the delete
args.CancelEdit(() => Task.FromResult(true));



//CANCEL the Delete
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

//My code waits for user response, but out of box progressor covers this up 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))
{

Outcomes