public void UnRegister(Order order) { lock (LockObject) { if (orders.ContainsKey(order.ClOrdID)) orders.Remove(order.ClOrdID); } }
void mi_SellClick(object sender, RoutedEventArgs e) { SecurityEntry entry = (SecurityEntry) ((MenuItem) sender).Tag; Order order = new Order(entry.GetBidGroup(), 1); FixApplication.Current.RequestOrders(new[] { order.OrderMessage }); }
public void Register(Order order) { lock (LockObject) { if(!orders.ContainsKey(order.ClOrdID)) orders.Add(order.ClOrdID, order); } }