private void Save(SaveEvent saveEvent) { this.entityService.ExecuteAsync( () => this.entityService.Create(this.Exchange.Model()), () => { this.Exchange = new ExchangeViewModel(this.eventAggregator); }, string.Format(Message.EntityAddedFormatString, "Exchange"), this.eventAggregator); }
public void Sorting() { this.SelectedExchange = null; }
public void OnNavigatedFrom(NavigationContext navigationContext) { this.eventAggregator.Unsubscribe <SaveEvent>(this.Save); this.eventAggregator.Unsubscribe <EntitySelectedEvent>(this.EntitySelected); this.Exchange = new ExchangeViewModel(this.eventAggregator); }