예제 #1
0
        public List <PbTickView> Data2View(IEnumerable <PbTick> list, bool flat)
        {
            if (list == null)
            {
                return(null);
            }

            Int2DoubleConverter converter = new Int2DoubleConverter(flat);
            List <PbTickView>   tempList  = new List <PbTickView>();

            foreach (var l in list)
            {
                tempList.Add(converter.Int2Double(l));
            }
            return(tempList);
        }
예제 #2
0
        public List<PbTickView> Data2View(IEnumerable<PbTick> list, bool flat)
        {
            if (list == null)
                return null;

            Int2DoubleConverter converter = new Int2DoubleConverter(flat);
            List<PbTickView> tempList = new List<PbTickView>();

            foreach (var l in list)
            {
                tempList.Add(converter.Int2Double(l));
            }
            return tempList;
        }