Horizon – Diff between revs 21 and 22
?pathlinks?
Rev 21 | Rev 22 | |||
---|---|---|---|---|
Line 1502... | Line 1502... | |||
1502 | } |
1502 | } |
|
1503 | } |
1503 | } |
|
Line 1504... | Line 1504... | |||
1504 | |
1504 | |
|
1505 | private static List<DataGridViewRow> GetSelectedDataGridViewRows(DataGridView dataGridView) |
1505 | private static List<DataGridViewRow> GetSelectedDataGridViewRows(DataGridView dataGridView) |
|
1506 | { |
1506 | { |
|
1507 | return dataGridView.SelectedRows.OfType<DataGridViewRow>().ToList(); |
1507 | return dataGridView.SelectedRows.OfType<DataGridViewRow>().Where(row => row.Visible).ToList(); |
|
Line 1508... | Line 1508... | |||
1508 | } |
1508 | } |
|
1509 | |
1509 | |
|
1510 | private static List<DataGridViewRow> GetAllDataGridViewRows(DataGridView dataGridView) |
1510 | private static List<DataGridViewRow> GetAllDataGridViewRows(DataGridView dataGridView) |
|
1511 | { |
1511 | { |
|
Line 1512... | Line 1512... | |||
1512 | return dataGridView.Rows.OfType<DataGridViewRow>().ToList(); |
1512 | return dataGridView.Rows.OfType<DataGridViewRow>().Where(row => row.Visible).ToList(); |
|
1513 | } |
1513 | } |
|
1514 | |
1514 | |
|
Line 1553... | Line 1553... | |||
1553 | progress.Report(new DataGridViewRowProgressFailure(rows[i], i, exception)); |
1553 | progress.Report(new DataGridViewRowProgressFailure(rows[i], i, exception)); |
|
1554 | } |
1554 | } |
|
1555 | } |
1555 | } |
|
1556 | } |
1556 | } |
|
Line 1557... | Line -... | |||
1557 | |
- | ||
1558 | |
1557 | |
|
1559 | private async Task TransferFiles(IReadOnlyList<DataGridViewRow> rows, Service service, |
1558 | private async Task TransferFiles(IReadOnlyList<DataGridViewRow> rows, Service service, |
|
1560 | IProgress<DataGridViewRowProgress> progress, CancellationToken cancellationToken) |
1559 | IProgress<DataGridViewRowProgress> progress, CancellationToken cancellationToken) |
|
Line 1561... | Line 1560... | |||
1561 | { |
1560 | { |