protected override async void OnClick() { //If you run this in the DEBUGGER you will NOT see the dialog uint maxSteps = 10; var pd = new ArcGIS.Desktop.Framework.Threading.Tasks.ProgressDialog( "Doing my thing - cancelable", "Canceled", maxSteps, false); await ProgressDialogModule.RunCancelableProgress( new CancelableProgressorSource(pd), maxSteps); }
protected override async void OnClick() { //If you run this in the DEBUGGER you will NOT see the dialog await ProgressDialogModule.RunCancelableProgress( new CancelableProgressorSource("Doing my thing - cancelable", "Canceled"), 5); }