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); }
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; }