Exemplo n.º 1
0
        private void AddFilter(dynamic value)
        {
            ConfigurationFilter filter = new ConfigurationFilter();

            filter.Initialize(GetArgs((string)value.type, (string)(value.predicate ?? string.Empty), value.args));
            Filters.Add(filter);
        }
Exemplo n.º 2
0
        private IFilter GetFilterFromScript()
        {
            List<string> fullArgs = new List<string> { txtType.Text, "" };
            string[] args = txtArgs.Text.SplitCsv();
            if (args != null)
            {
                fullArgs.AddRange(args);
            }

            ConfigurationFilter filter = new ConfigurationFilter();
            filter.Initialize(fullArgs.ToArray());

            return filter;
        }