Example #1
0
 public void AddPrice(double _price)
 {
     if (curTickBong.IsComplete())
     {
         tickBongInfoList.Push(new TickBongInfo(settingMaxCount));
         curTickBong = tickBongInfoList.Peek();
     }
     curTickBong.AddPrice(_price);
 }
Example #2
0
        public TickBongInfo GetTickBong(int index)
        {
            int          idx  = 0;
            TickBongInfo bong = null;

            foreach (var bongItem in tickBongInfoList)
            {
                if (idx == index && bongItem.IsComplete())
                {
                    bong = bongItem;
                    break;
                }
                idx++;
            }
            return(bong);
        }
Example #3
0
 public void Clear()
 {
     tickBongInfoList.Clear();
     tickBongInfoList.Push(new TickBongInfo(settingMaxCount));
     curTickBong = tickBongInfoList.Peek();
 }
Example #4
0
 public TickBongInfoMgr(int _settingMaxCount)
 {
     settingMaxCount = _settingMaxCount;
     tickBongInfoList.Push(new TickBongInfo(_settingMaxCount));
     curTickBong = tickBongInfoList.Peek();
 }