예제 #1
0
        protected void LongOperation_Completed(object sender, LongOperationCompletedEventArgs e)
        {
            _ProgressControl.Dispose();
            _ProgressControl = null;
            ((DevExpress.ExpressApp.Demos.LongOperation)sender).CancellingTimeoutExpired -= LongOperation_CancellingTimeoutExpired;
            ((DevExpress.ExpressApp.Demos.LongOperation)sender).Completed -= LongOperation_Completed;
            ((DevExpress.ExpressApp.Demos.LongOperation)sender).Dispose();

            _WaitLongOperationCompleted.PostOperationCompleted(WorkCompleted, null);
            _WaitLongOperationCompleted = null;
        }
예제 #2
0
        private void LongOperation_Completed(object sender, LongOperationCompletedEventArgs e)
        {
            progressControl.Dispose();
            progressControl = null;
            ((LongOperation)sender).CancellingTimeoutExpired -= new EventHandler(LongOperation_CancellingTimeoutExpired);
            ((LongOperation)sender).Completed -= new EventHandler <LongOperationCompletedEventArgs>(LongOperation_Completed);
            ((LongOperation)sender).Dispose();

            waitLongOperationCompleted.PostOperationCompleted(WorkCompleted, null);
            waitLongOperationCompleted = null;
        }