protected DataModelConditionPredicateViewModel( DataModelConditionPredicate dataModelConditionPredicate, IProfileEditorService profileEditorService, IDataModelUIService dataModelUIService, IConditionOperatorService conditionOperatorService, ISettingsService settingsService) : base(dataModelConditionPredicate) { _profileEditorService = profileEditorService; _dataModelUIService = dataModelUIService; _conditionOperatorService = conditionOperatorService; _supportedInputTypes = new List <Type>(); SelectOperatorCommand = new DelegateCommand(ExecuteSelectOperatorCommand); Operators = new BindableCollection <BaseConditionOperator>(); ShowDataModelValues = settingsService.GetSetting <bool>("ProfileEditor.ShowDataModelValues"); }
public override void Evaluate() { IsConditionMet = DataModelConditionPredicate.Evaluate(); }