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

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