Exemplo n.º 1
1
 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);
 }
Exemplo n.º 2
0
        protected override async void OnClick()
        {
            //If you run this in the DEBUGGER you will NOT see the dialog
            var ps = new ProgressorSource("Doing my thing...");

            ps.Max = 5;
            await ProgressDialogModule.RunProgress(ps, 5);
        }
 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);
 }
 protected override async void OnClick()
 {
     //If you run this in the DEBUGGER you will NOT see the dialog
     await ProgressDialogModule.RunProgress(new ProgressorSource("Doing my thing...", false), 5);
 }