/// <summary>
        /// Adds continuous values to a filter.
        /// </summary>
        /// <param name="values">array of continuous values</param>
        /// <param name="filter_name">name of the filter</param>
        /// <param name="active">filter's state</param>
        private void AddContinuousValues(SimpleFilter[] values, string filter_name, bool active)
        {
            if (!_currentSession.IsOpenedOrCreated)
            {
                return;
            }

            //get a reference to a graph using its name
            Graph graph = _analysisApi.Session.Runs[0].Graphs[_lastGraph];

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

            //set isActive property
            fi.IsActive = active;

            //iterate through all values in SimpleFilter array
            foreach (SimpleFilter filter in values)
            {
                //add current value to filter
                fi.AddContinuousValue(filter.Name, filter.Min, filter.Max);
            }
        }