public GUI_OrderInfo(TapTradeAPI.TapAPIOrderInfoNotice order) { _OrderInfoNotice = new TapTradeAPI.TapAPIOrderInfoNotice(); _OrderInfoNotice.ErrorCode = order.ErrorCode; _OrderInfoNotice.SessionID = order.SessionID; _OrderInfoNotice.OrderInfo = new TapTradeAPI.TapAPIOrderInfo(order.OrderInfo); }
public void UpdateOrAdd(TapTradeAPI.TapAPIOrderInfoNotice order) { if (null != order.OrderInfo && order.OrderInfo.OrderNo.Length > 0) { if (OrderDict.ContainsKey(order.OrderInfo.OrderNo)) { OrderDict[order.OrderInfo.OrderNo] = new GUI_OrderInfo(order); } else { OrderDict.Add(order.OrderInfo.OrderNo, new GUI_OrderInfo(order)); } } }