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

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