Esempio n. 1
0
        private IList <double[]> ParseTradingTime(string str)
        {
            TradingTime time = new TradingTime();

            time.LoadFromString(str);
            return(time.TradingPeriods);
        }
Esempio n. 2
0
        public static List <ITradingTime> LoadByLines(string[] lines)
        {
            List <ITradingTime> data = new List <ITradingTime>(lines.Length);

            for (int i = 0; i < lines.Length; i++)
            {
                String line = lines[i].Trim();
                if (line.Equals(""))
                {
                    continue;
                }
                TradingTime startTime = new TradingTime();
                startTime.LoadFromString(line);
                data.Add(startTime);
            }
            return(data);
        }