public PbTickView Data2View(PbTick tick, bool descending) { if (tick == null) { return(null); } var converter = new Int2DoubleConverter(); return(converter.Int2Double(tick, descending)); }
public List <PbTickView> Data2View(IEnumerable <PbTick> ticks, bool descending) { if (ticks == null) { return(null); } var converter = new Int2DoubleConverter(); var views = new List <PbTickView>(); foreach (var tick in ticks) { views.Add(converter.Int2Double(tick, descending)); } return(views); }
public PbTickView Data2View(PbTick tick, bool descending) { if (tick == null) return null; var converter = new Int2DoubleConverter(); return converter.Int2Double(tick, descending); }
public List<PbTickView> Data2View(IEnumerable<PbTick> ticks, bool descending) { if (ticks == null) return null; var converter = new Int2DoubleConverter(); var views = new List<PbTickView>(); foreach (var tick in ticks) { views.Add(converter.Int2Double(tick, descending)); } return views; }