public void LoadStatusesForChoices() { AccountSelectedList.Clear(); foreach (var status in StatusChoicesList.Where(s => s.IsChecked)) { foreach (var acc in ChooseAccountExt(status.Status, IsATH, AccountList)) { AccountSelectedList.Add(acc); } } }
private void ExportToExcel() { var report = _excelReportService.CreateAccountWithStatusesReport(new ObservableCollection <AccountsMainSet>(AccountSelectedList.Select(a => a.Account))); if (report != null) { _accountsController.SaveDialogWindow(); if (!string.IsNullOrWhiteSpace(_filename)) { _excelReportService.SaveReport(_filename, report); } } }