Ejemplo n.º 1
0
        /// <summary>
        /// Clears all filter values. Call this function before applying new filter values.
        /// </summary>
        /// <param name="filter_name">name of the filter</param>
        private void ClearFilter(string filter_name)
        {
            if (!_currentSession.IsOpenedOrCreated)
            {
                return;
            }

            //get a reference to a graph using its name
            Graph graph = _currentRun.Graphs[_lastGraph];
            //get a reference to a filter using its name
            FilterItem fi = graph.Filter[filter_name];

            //clear filter values
            fi.ClearValues();
        }