Beispiel #1
0
        public FilterGroup AddFilterGroup(string caption, FilterProperty property,
                                          ExpressionType expressionType = ExpressionType.In, string description = default)
        {
            var group = new FilterGroup(caption, property, expressionType, description);

            FilterGroups.Add(group);
            return(group);
        }
Beispiel #2
0
        public FilterGroup AddForeignFilterGroup(string caption, string fieldName, Type foreignEntity,
                                                 ExpressionType expressionType = ExpressionType.In,
                                                 string description            = default)
        {
            var group = new FilterGroup(caption, new FilterProperty(fieldName, foreignEntity), expressionType, description);

            FilterGroups.Add(group);
            return(group);
        }
Beispiel #3
0
        public FilterGroup AddHiddenFilterGroup(FilterProperty property, ExpressionType expressionType = ExpressionType.In)
        {
            var group = new FilterGroup(property, expressionType)
            {
                Hidden = true
            };

            FilterGroups.Add(group);
            return(group);
        }
Beispiel #4
0
        public FilterGroup AddHiddenFilterGroup <TForeignEntity>(string fieldName, ExpressionType expressionType = ExpressionType.In)
        {
            var group = new FilterGroup(new FilterProperty(fieldName, typeof(TForeignEntity)), expressionType)
            {
                Hidden = true
            };

            FilterGroups.Add(group);
            return(group);
        }
        private async Task OnAddCommandExecuteAsync()
        {
            var logFilterGroup = new LogFilterGroup();

            if (await _uiVisualizerService.ShowDialogAsync <LogFilterGroupEditorViewModel>(logFilterGroup) ?? false)
            {
                FilterGroups.Add(logFilterGroup);
                await SaveFilterGroupsAsync();

                Updated.SafeInvoke(this);
            }
        }
 protected override void CreateFilterGroups()
 {
     FilterGroups.Clear();
     FilterGroups.Add(CreateWorkPeriodFilterGroup());
 }