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

            Double2IntConverter converter = new Double2IntConverter(flat);
            List <PbTick>       tempList  = new List <PbTick>();

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

            Double2IntConverter converter = new Double2IntConverter(flat);
            List<PbTick> tempList = new List<PbTick>();

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