예제 #1
0
        public override bool Equals(object obj)
        {
            WatcherSymbol watcher = obj as WatcherSymbol;

            if (null == watcher)
            {
                return(false);
            }
            return(m_symbol == watcher.m_symbol);
        }
예제 #2
0
        public Watcher()
        {
            Settings s = Settings.Default;

            char[]   chs        = new char[] { ';' };
            string[] securities = s.Securities.Split(chs, StringSplitOptions.RemoveEmptyEntries);
            foreach (var element in securities)
            {
                WatcherSymbol watcher = new WatcherSymbol(element);
                m_watchers.Add(watcher);
            }
        }