Exemplo n.º 1
0
 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);
         }
     }
 }
Exemplo n.º 2
0
        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);
                }
            }
        }