public void AddPrice(double _price) { if (curTickBong.IsComplete()) { tickBongInfoList.Push(new TickBongInfo(settingMaxCount)); curTickBong = tickBongInfoList.Peek(); } curTickBong.AddPrice(_price); }
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); }
public void Clear() { tickBongInfoList.Clear(); tickBongInfoList.Push(new TickBongInfo(settingMaxCount)); curTickBong = tickBongInfoList.Peek(); }
public TickBongInfoMgr(int _settingMaxCount) { settingMaxCount = _settingMaxCount; tickBongInfoList.Push(new TickBongInfo(_settingMaxCount)); curTickBong = tickBongInfoList.Peek(); }