public void Update(TransaqStopOrder tso) { if (tso.TransactionId != -1L) { this.TransactionId = tso.TransactionId; } if (tso.ActiveOrderNo != -1L) { this.ActiveOrderNo = tso.ActiveOrderNo; } if (tso.Status != string.Empty) { this.Status = tso.Status; } if (tso.WithdrawTime != string.Empty) { this.WithdrawTime = tso.WithdrawTime; } if (tso.Result != string.Empty) { this.Result = tso.Result; } this.StopLoss.Update(tso.StopLoss); this.TakeProfit.Update(tso.TakeProfit); }
public void Update(TransaqStopOrder tso) { if (tso.TransactionId != -1L) this.TransactionId = tso.TransactionId; if (tso.ActiveOrderNo != -1L) this.ActiveOrderNo = tso.ActiveOrderNo; if (tso.Status != string.Empty) this.Status = tso.Status; if (tso.WithdrawTime != string.Empty) this.WithdrawTime = tso.WithdrawTime; if (tso.Result != string.Empty) this.Result = tso.Result; this.StopLoss.Update(tso.StopLoss); this.TakeProfit.Update(tso.TakeProfit); }