예제 #1
0
 public SelectQuery(ConditionGroupType RootConditionsType)
 {
     tables = new Dictionary<string, IQueryTable>();
     fieldsContainer = new QueryFieldsContainer();
     selectFields = new List<string>();
     sortingFields = new Dictionary<string, SortDirection>();
     RootCondition = new ConditionGroup(RootConditionsType, fieldsContainer);
 }
		public ConditionGroup()
		{
			GroupTypes = new List<ConditionGroupType>
			{
				ConditionGroupType.And,
				ConditionGroupType.Or
			};
			Type = ConditionGroupType.And;
		}
        public DataModelConditionGroupViewModel(DataModelConditionGroup dataModelConditionGroup,
                                                ConditionGroupType groupType,
                                                IProfileEditorService profileEditorService,
                                                IDataModelConditionsVmFactory dataModelConditionsVmFactory)
            : base(dataModelConditionGroup)
        {
            GroupType                     = groupType;
            _profileEditorService         = profileEditorService;
            _dataModelConditionsVmFactory = dataModelConditionsVmFactory;

            Items.CollectionChanged += (_, _) => NotifyOfPropertyChange(nameof(DisplayBooleanOperator));
        }
        public DataModelConditionGroupViewModel(DataModelConditionGroup dataModelConditionGroup,
                                                ConditionGroupType groupType,
                                                IProfileEditorService profileEditorService,
                                                IDataModelConditionsVmFactory dataModelConditionsVmFactory)
            : base(dataModelConditionGroup)
        {
            GroupType                     = groupType;
            _profileEditorService         = profileEditorService;
            _dataModelConditionsVmFactory = dataModelConditionsVmFactory;

            Items.CollectionChanged += (_, _) => NotifyOfPropertyChange(nameof(DisplayBooleanOperator));

            Execute.PostToUIThread(async() =>
            {
                await Task.Delay(50);
                IsInitialized = true;
            });
        }
예제 #5
0
 public ConditionGroup(ConditionGroupType groupType, params ConditionBase[] conditions)
 {
     this.groupType  = groupType;
     this.conditions = conditions;
 }