예제 #1
0
        private void ProcessingAnalysisConfiguration()
        {
            if (this.Analysis.Configuration.Values == null)
            {
                return;
            }

            foreach (var value in this.Analysis.Configuration.Values)
            {
                var valueField = new AnalysisValueField(this.Analysis, value);

                this.valueDictionary.SetObjectForKey(valueField, valueField.Key);
                var valueResultColumn = new AnalysisValueResultColumn(valueField);

                this.resultColumns.SetObjectForKey(valueResultColumn, valueField.Key);
                if (!valueField.IsCategory && !valueField.IsDefaultCategory && !valueField.IsXCategory)
                {
                    continue;
                }

                var valueCategory = new AnalysisValueCategory(valueField);
                if (valueField.IsXCategory)
                {
                    this.SetXCategory(valueCategory);
                }
                else
                {
                    this.categoryDictionary.SetObjectForKey(valueCategory, valueCategory.Key);
                    if (valueField.IsDefaultCategory)
                    {
                        this.SetDefaultCategory(valueCategory);
                    }
                }
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisValueCategory"/> class.
 /// </summary>
 /// <param name="field">Field</param>
 public AnalysisValueCategory(AnalysisValueField field)
 {
     this.AnalysisValueField = field;
     this.valueFunction      = new AnalysisValueResultColumn(field).ValueFunction;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisValueFilter"/> class.
 /// </summary>
 /// <param name="analysisValue">Analysis value</param>
 /// <param name="val">Value</param>
 public AnalysisValueFilter(AnalysisValueField analysisValue, string val)
     : base(val, val)
 {
     this.AnalysisValue = analysisValue;
 }