Exemplo n.º 1
0
        /// <summary>
        /// Add a filter
        /// </summary>
        /// <param name="filter">The filter factory</param>
        public void AddFilter(IDataFrameFilterFactory filter)
        {
            List <IDataFrameFilterFactory> filters = new List <IDataFrameFilterFactory>(_filters);

            filters.Add(filter);
            _filters = filters.ToArray();
            SetDirty();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Another internal constructor
 /// </summary>
 /// <param name="label"></param>
 /// <param name="guid"></param>
 protected BaseNodeFactory(string label, Guid guid)
 {
     Label         = label;
     Enabled       = true;
     Properties    = new Dictionary <string, string>();
     Id            = guid;
     Filters       = new IDataFrameFilterFactory[0];
     SelectionPath = "/";
 }
Exemplo n.º 3
0
        /// <summary>
        /// Remove a filter
        /// </summary>
        /// <param name="filter">The filter factory</param>
        public void RemoveFilter(IDataFrameFilterFactory filter)
        {
            List <IDataFrameFilterFactory> filters = new List <IDataFrameFilterFactory>(_filters);

            if (filters.Remove(filter))
            {
                _filters = filters.ToArray();
                SetDirty();
            }
        }