Exemplo n.º 1
0
 private void OnActivationStarted(ActivationStartedEventArgs e)
 {
     if (ActivationStarted != null)
     {
         ActivationStarted(this, e);
     }
 }
Exemplo n.º 2
0
 public void Activate(Manifest[] manifests)
 {
     foreach (var m in manifests)
     {
         OnActivationInitializing(new ManifestEventArgs()
         {
             Manifest = m
         });
         Backup(m);
         ActivationStartedEventArgs e = new ActivationStartedEventArgs()
         {
             Manifest = m
         };
         OnActivationStarted(e);
         if (e.Cancel)
         {
             Clear();
             break;
         }
         else
         {
             fileCopyer.CopyAsync(m, downloader.TempPath);
         }
     }
 }