Ejemplo n.º 1
0
        public PbTickView Data2View(PbTick tick, bool descending)
        {
            if (tick == null)
            {
                return(null);
            }
            var converter = new Int2DoubleConverter();

            return(converter.Int2Double(tick, descending));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public PbTickView Data2View(PbTick tick, bool descending)
 {
     if (tick == null)
         return null;
     var converter = new Int2DoubleConverter();
     return converter.Int2Double(tick, descending);
 }
Ejemplo n.º 4
0
        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;
        }