public static Retrieve Get() { if (retrieve == null) { retrieve = new Retrieve(); } return(retrieve); }
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); }
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); } } }