コード例 #1
0
        public EmbeddedOrderViewModel(IEventAggregator events, Stock stock)
        {
            this._events = events;
            events.Subscribe(this);

            StockOrder = new StockOrder {Stock = stock};
        }
コード例 #2
0
 public void Publish(Stock stock, bool delete = false)
 {
     _events.Publish(new StockChangedEvent
     {
         Stock = stock,
         Delete = delete
     });
 }