private void ImportFromFile() { if (string.IsNullOrWhiteSpace(FileName)) { return; } var loanTypes = _service.ImportLoanTypes(FileName); var eventArgs = new AfterImportFileEventArgs(); foreach (var loanType in loanTypes.Types) { eventArgs.LoanTypeItems.Add(new LoanTypeItem(loanType.Id, loanType.TypeName)); } _eventAggregator.GetEvent <AfterImportFileEvent>().Publish(eventArgs); }
private void AfterImportFile(AfterImportFileEventArgs obj) { LoadList(); }