private void DoWork(DevExpress.ExpressApp.Demos.LongOperation longOperation) {
            try {
                DoWorkCore(longOperation);
            } catch (Exception) {
                longOperation.TerminateAsync();
                progressControl.Dispose();
                throw;

            }
        }