Пример #1
0
        private void CompletionMethod(Manifest manifest, Exception exception, bool canceled, AsyncOperation asyncOp)
        {
            if (!canceled)
            {
                lock (userStateToLifetime.SyncRoot)
                {
                    userStateToLifetime.Remove(asyncOp.UserSuppliedState);
                }
            }

            FileCopyCompletedEventArgs e = new FileCopyCompletedEventArgs(exception, canceled, asyncOp.UserSuppliedState);
            e.Manifest = manifest;
            asyncOp.PostOperationCompleted(onCompletedDelegate, e);
        }
Пример #2
0
 private void fileCopyer_FileCopyCompleted(object sender, FileCopyCompletedEventArgs e)
 {
     Clear();
     try
     {
         updateCfgView.Version = e.Manifest.Version;
     }
     catch
     {
     }
     if (ActivationCompleted != null)
     {
         ActivationCompletedEventArgs evt = new ActivationCompletedEventArgs(e.Error, e.Cancelled, e.UserState);
         evt.Manifest = e.Manifest;
         OnActivationCompleted(evt);
     }
 }
Пример #3
0
 protected void OnFileCopyCompleted(FileCopyCompletedEventArgs e)
 {
     if (FileCopyCompleted != null)
     {
         FileCopyCompleted(this, e);
     }
 }