private void OnActivationStarted(ActivationStartedEventArgs e) { if (ActivationStarted != null) { ActivationStarted(this, e); } }
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); } } }