/// <summary> /// Send a request to the package manager client to download this package and its dependencies /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DownloadPackage(object sender, RoutedEventArgs e) { var info = ((PackageDependencyRow)((Button)sender).DataContext).DependencyInfo; var package = new PackageInfo(info.Name, info.Version); packageInstaller.DownloadAndInstallPackage(package); DependencyRegen(currentWorkspace); }
/// <summary> /// Downloaded the specified package according to serialized dyn /// and refresh the view of dependency viewer /// </summary> /// <param name="info">Target PackageDependencyInfo to download</param> internal void DownloadSpecifiedPackageAndRefresh(PackageDependencyInfo info) { packageInstaller.DownloadAndInstallPackage(info); DependencyRegen(currentWorkspace); }