private void CmExportCustom(object sender, RoutedEventArgs e) { if (AccountsDataGrid.SelectedItems.Count == 0) { return; } ExportWindow window = new ExportWindow(AccountsDataGrid.SelectedItems.Cast <Account>()); window.ShowDialog(); }
private void CmExportCustom(object sender, RoutedEventArgs e) { if (AccountsDataGrid.SelectedItem == null) { return; } var accounts = AccountsDataGrid.SelectedItems.Cast <Account>(); var window = new ExportWindow(accounts); window.ShowDialog(); }
private void CmExportCustom(object sender, RoutedEventArgs e) { if (AccountsDataGrid.SelectedItem == null) { return; } var accounts = AccountsDataGrid.SelectedItems.Cast<Account>(); var window = new ExportWindow(accounts); window.ShowDialog(); }
private void CmExportCustom(object sender, RoutedEventArgs e) { if (AccountsDataGrid.SelectedItems.Count == 0) { return; } ExportWindow window = new ExportWindow(AccountsDataGrid.SelectedItems.Cast<Account>()); window.ShowDialog(); }