示例#1
0
        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");
        }
示例#2
0
 public override void Evaluate()
 {
     IsConditionMet = DataModelConditionPredicate.Evaluate();
 }