Пример #1
0
 protected void OnFileCopyCompleted(FileCopyCompletedEventArgs e)
 {
     if (FileCopyCompleted != null)
     {
         FileCopyCompleted(this, e);
     }
 }
Пример #2
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);
        }
Пример #3
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);
     }
 }
Пример #4
0
        private void CopyCompleted(object operationState)
        {
            FileCopyCompletedEventArgs e = operationState as FileCopyCompletedEventArgs;

            OnFileCopyCompleted(e);
        }