Exemple #1
0
            /// <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]);
            }
Exemple #2
0
            /// <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]);
            }