Exemplo n.º 1
0
 private bool ConfirmInstallAction(IEnumerable <IPluginDescription> plugins)
 {
     foreach (var plugin in plugins)
     {
         if (!string.IsNullOrEmpty(plugin.LicenseText))
         {
             using (var licenseConfirmationBox = new LicenseConfirmationDialog(plugin)) {
                 if (licenseConfirmationBox.ShowDialog(this) != DialogResult.OK)
                 {
                     return(false);
                 }
             }
         }
     }
     return(true);
 }
Exemplo n.º 2
0
 private bool ConfirmInstallAction(IEnumerable<IPluginDescription> plugins) {
   foreach (var plugin in plugins) {
     if (!string.IsNullOrEmpty(plugin.LicenseText)) {
       using (var licenseConfirmationBox = new LicenseConfirmationDialog(plugin)) {
         if (licenseConfirmationBox.ShowDialog(this) != DialogResult.OK)
           return false;
       }
     }
   }
   return true;
 }