Example #1
0
        public static Retrieve Get()
        {
            if (retrieve == null)
            {
                retrieve = new Retrieve();
            }

            return(retrieve);
        }
Example #2
0
        public static Retrieve GetInstance(string code)
        {
            if (retrieve == null)
            {
                retrieve = new Retrieve(code);
            }

            else if (!Code.Equals(code))
            {
                Code     = code;
                retrieve = new Retrieve(code);
            }
            return(retrieve);
        }
Example #3
0
        public IEnumerator GetEnumerator()
        {
            var chart = Retrieve.GetInstance(code).DayChart;

            if (chart.Count > 0)
            {
                foreach (var temp in chart)
                {
                    yield return(temp);
                }
            }

            var tick = Retrieve.GetInstance(code).TickChart;

            if (tick.Count > 0)
            {
                foreach (var temp in tick)
                {
                    yield return(temp);
                }
            }
        }