コード例 #1
0
 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;
 }
コード例 #3
0
 public void OnNavigatedFrom(NavigationContext navigationContext)
 {
     this.eventAggregator.Unsubscribe <SaveEvent>(this.Save);
     this.eventAggregator.Unsubscribe <EntitySelectedEvent>(this.EntitySelected);
     this.Exchange = new ExchangeViewModel(this.eventAggregator);
 }