///------------------------------------------------------------------------ /// <summary> /// Adds the curve to hidden list. /// </summary> /// <param name="index">The index.</param> ///------------------------------------------------------------------------ public void AddCurveToHiddenList(string index) { if (!HiddenCurves.Contains(index)) { HiddenCurves.Add(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); } }