Example #1
0
File: Package.cs Project: 3F/IeXod
 public Package(Product product, XmlNode node, XmlValidationResults validationResults, string name, string culture)
 {
     Product           = product;
     Node              = node;
     Name              = name;
     Culture           = culture;
     ValidationResults = validationResults;
 }
Example #2
0
 /// <summary>
 /// Adds the validation results of a package of the specified culture into the ProductValidationResults.
 /// </summary>
 /// <param name="culture">The culture of the XmlValidationResults to add.</param>
 /// <param name="results">The vaue of the results to add.</param>
 public void AddPackageResults(string culture, XmlValidationResults results)
 {
     if (!_packageValidationResults.ContainsKey(culture))
     {
         _packageValidationResults.Add(culture, results);
     }
     else
     {
         System.Diagnostics.Debug.Fail("Validation results have already been added for culture '{0}'", culture);
     }
 }