internal ClientLevelFilter(Filter f) { Condition = f.FilterCondition; FilterType = f.FilterType; MeasureName = f.fMeasureName; FirstValue = f.FirstValue; SecondValue = f.SecondValue; }
public SerizalizedFilter(Filter f) { FilterType = f.FilterType; MeasureName = f.fMeasureName; Condition = f.FilterCondition; FirstValue = f.FirstValue; SecondFalue = f.SecondValue; MDXLevelName = f.fLevelName; }
//private Image fBitmap; /// <summary> /// An icon which will be displayed in the context menu. /// </summary> /// <summary>Creates a new instance of the Filter type.</summary> /// <param name="ALevel">The hierarchy level the filter will be applied to.</param> /// <param name="filterType">Describes the filter type, i.e. how this filter is applied to the hierarchy members.</param> /// <param name="applyTo">The measure this filter is applied to, or null if the filter is not of "value" type.</param> /// <param name="condition">The condition used in this filter (equal, less, between, etc.)</param> /// <param name="firstValue">The string representation of the first value being used in this filter.</param> /// <param name="secondValue">The string representation of the auxiliary (or second) value used in some filter conditions.</param> public Filter(Level ALevel, OlapFilterType filterType, Measure applyTo, OlapFilterCondition condition, string firstValue, string secondValue) { Level = ALevel; FilterType = filterType; if (applyTo != null) { fMeasureName = applyTo.UniqueName; } fCondition = condition; fFirstValue = firstValue; fSecondFalue = secondValue; }