/// <summary> /// Add a new series to the watched list /// </summary> /// <param name="name"></param> /// <returns></returns> public static SeriesIndex Add(string name) { int index = WatchedSeries.Count; WatchedSeries.Add(new Series(name)); WatchedIndices.Add(new SeriesIndex(index, true)); return(WatchedIndices[index]); }
/// <summary> /// Move the selected to-watch series to the watched list /// </summary> /// <param name="index"></param> /// <returns></returns> public static SeriesIndex MoveToWatched(int index) { int watchedIndex = WatchedSeries.Count; WatchedSeries.Add(ToWatchSeries[index]); WatchedIndices.Add(new SeriesIndex(watchedIndex, true)); Remove(index); return(WatchedIndices[watchedIndex]); }