Select to view content in your preferred language

Are there events to subscribe to for the Edits tab Save or Discard changes?

138
1
Jump to solution
11-04-2024 08:23 AM
Gurunara
Frequent Contributor

Would like to subscribe to events for the Edit tab Discard and Save changes buttons in ArcPro.

0 Kudos
1 Solution

Accepted Solutions
Gurunara
Frequent Contributor

EditCompletedEvent.Subscribe(args =>
{
OnEditCompleted(args);

return Task.FromResult(0);
});

private void OnEditCompleted(EditCompletedEventArgs args)
{
if (args.CompletedType == EditCompletedType.Save)
{
}
else if (args.CompletedType == EditCompletedType.Discard)
{
}
}

View solution in original post

0 Kudos
1 Reply
Gurunara
Frequent Contributor

EditCompletedEvent.Subscribe(args =>
{
OnEditCompleted(args);

return Task.FromResult(0);
});

private void OnEditCompleted(EditCompletedEventArgs args)
{
if (args.CompletedType == EditCompletedType.Save)
{
}
else if (args.CompletedType == EditCompletedType.Discard)
{
}
}

0 Kudos