public void update( Price update ) { if ( this.bid > update.bid ) { state = State.Decreasing; } else if ( this.bid < update.bid ) { state = State.Increasing; } else { state = State.Default; } this.bid = update.bid; this.ask = update.ask; this.time = update.time; }
//public double StopLoss { get { return _model.stopLoss; } } //public long Expiry { get { return _model.expiry; } } //public double HighLimit { get { return _model.highLimit; } } //public double LowLimit { get { return _model.lowLimit; } } //public int TrailingStop { get { return _model.trailingStop; } } //public int OcaGroupId { get { return _model.ocaGroupId; } } public void Update(Price price) { _model.update(price); this.OnPropertyChanged("Subtitle"); this.OnPropertyChanged("Content"); }
public PriceViewModel(Price data, DataGroup group) : base(group) { _model = data; _chart = new ChartViewModel(Instrument); }