public WeightingFilterCollection(BaseReportDefinition owner, DatabaseCore.Core core, XmlNode xmlNode) { this.Owner = owner; this.Core = core; this.XmlNode = xmlNode; this.IsTaxonomy = true; this.Items = new Dictionary <Guid, WeightingFilter>(); if (this.XmlNode != null) { // Run through all weighting variable xml nodes. foreach (XmlNode xmlNodeWeightingVariable in this.XmlNode.SelectNodes("Operator")) { // Create a new weighting filter by the xml node. WeightingFilter weightingFilter = new WeightingFilter(this, xmlNodeWeightingVariable); // Add the weighting filter to the collection's items this.Items.Add( weightingFilter.IdWeightingVariable, weightingFilter ); /*if (weightingFilter.IdCategory == new Guid()) * this.DefaultWeighting = weightingFilter.WeightingVariable;*/ } if (this.XmlNode.Attributes["DefaultWeighting"] != null && this.XmlNode.Attributes["DefaultWeighting"].Value != "") { this._DefaultWeighting = Guid.Parse(this.XmlNode.Attributes["DefaultWeighting"].Value); } if (this.XmlNode.Attributes["IsTaxonomy"] != null) { this.IsTaxonomy = bool.Parse(this.XmlNode.Attributes["IsTaxonomy"].Value); } } }
public LinkBiSettings(BaseReportDefinition owner, XmlNode xmlNode) : base(owner, xmlNode) { }