コード例 #1
0
 ///------------------------------------------------------------------------
 /// <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);
     }
 }
コード例 #2
0
 ///------------------------------------------------------------------------
 /// <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);
     }
 }
コード例 #3
0
 ///------------------------------------------------------------------------
 /// <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);
     }
 }