public void DeliverInfo(InstrumentPositionInfoAdapted instrumentPositionInfoAdapted) { this.Account = instrumentPositionInfoAdapted.Account; this.AccountName = instrumentPositionInfoAdapted.AccountName; this.Amount = instrumentPositionInfoAdapted.Amount; this.Symbol = instrumentPositionInfoAdapted.Symbol; this.NotifyChanges(); }
public void DeliverInstrumentPositionInfo(InstrumentPositionInfoAdapted instrumentPositionInfoAdapted) { var item = this.InstrumentsPositions.FirstOrDefault(pos => pos.Symbol == instrumentPositionInfoAdapted.Symbol); if (item != null) { item.DeliverInfo(instrumentPositionInfoAdapted); } else { this.InstrumentsPositions.Add(new Position(instrumentPositionInfoAdapted)); } }
public Position(InstrumentPositionInfoAdapted instrumentPositionInfoAdapted) { this.DeliverInfo(instrumentPositionInfoAdapted); }