///------------------------------------------------------------------------ /// <summary> /// Removes the curve from hidden list. /// </summary> /// <param name="index">The index.</param> ///------------------------------------------------------------------------ public void RemoveCurveFromHiddenList(string index) { if (HiddenCurves.Contains(index)) { HiddenCurves.Remove(index); } }
///------------------------------------------------------------------------ /// <summary> /// Adds/removes the index from the curve index list. The list is used for /// enabling/disabling curves in the spectrum display. /// </summary> /// <param name="index">The index of the curve to enable/disable.</param> ///------------------------------------------------------------------------ public void AddRemoveHiddenCurveIndex(string index) { if (HiddenCurves.Contains(index)) { HiddenCurves.Remove(index); } else { HiddenCurves.Add(index); } }