private void CancelOrder(ref Order order) { if (!IsDone(order) && !IsNotSent(order)) { Agent.Cancel(order); } else { if (IsNotSent(OpenOrder)) { ClearOrder(ref order); } } }
private void CancelOrder(ref Order order) { if (!IsDone(order) && !IsNotSent(order)) { _agent.Cancel(order); } else { if (IsNotSent(order)) { //_manager.ProcessSend(); ClearOrder(ref order); } } }