Exemple #1
0
 private void InitializeFilter(FilterType filterType)
 {
     // explicitly kill any previous instance,
     // because it will have an event subscription and may not get garbage collected
     // not sure if this is needed.
     _filterObserver = null;
     _filterObserver = new FilterObserver(this, filterType);
 }
Exemple #2
0
 internal void ResetFilter() // not sure about this. what is the purpose?
 {
     this.SelectedConnectedCategory       = null;
     this.SelectedConnectionFieldListItem = null;
     this.SelectedFieldListItem           = null;
     _filterObserver    = null;
     this.FieldValue    = null;
     this.BetweenStart  = null;
     this.BetweenEnd    = null;
     this.CurrentFilter = null;
 }
        protected override void ConfigureOverride(FilterContext context, IOutputOptions options)
        {
            var output = FileHelper.DescribeOutput(
                options.OutputFilePath,
                options.OutputFileFormat,
                options.DefaultOutputFileFormat,
                context.Filter.OutputType,
                Console.Out
                );

            var observer = new FilterObserver(output);

            context.Observers.Add(observer);
        }