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); }
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); }
public FilterGroup AddHiddenFilterGroup(FilterProperty property, ExpressionType expressionType = ExpressionType.In) { var group = new FilterGroup(property, expressionType) { Hidden = true }; FilterGroups.Add(group); return(group); }
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()); }