Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void AfterImportFile(AfterImportFileEventArgs obj)
 {
     LoadList();
 }