Пример #1
0
        private void GetNewThresholdComparers()
        {
            if (m_style == null)
            {
                return;
            }

            var thresholds = m_style.Thresholds;

            OriginalGravityStyleComparison = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "og"));
            FinalGravityStyleComparison    = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "fg"));
            AbvStyleComparison             = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "abv"));
            BitternessStyleComparison      = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "ibu"));
            ColorStyleComparison           = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "color"));
        }
Пример #2
0
        private void GetNewThresholdComparers()
        {
            if (m_style == null)
                return;

            ReadOnlyCollection<StyleThreshold> thresholds = m_style.Thresholds;
            OriginalGravityStyleComparison = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "og"));
            FinalGravityStyleComparison = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "fg"));
            AbvStyleComparison = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "abv"));
            BitternessStyleComparison = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "ibu"));
            ColorStyleComparison = new StyleThresholdComparisonDataModel(thresholds.Single(threshold => threshold.Value == "color"));
        }