Skip to content

Commit

Permalink
Fix crash when uninstalling agent through Exchange Transport Agents w…
Browse files Browse the repository at this point in the history
…indow
  • Loading branch information
MisterSausage committed Sep 30, 2021
1 parent 54899cb commit 6188f10
Show file tree
Hide file tree
Showing 137 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Src/Configuration.DkimSigner/ExchangeTransportServiceWindow.cs
Expand Up @@ -84,15 +84,15 @@ private void RefreshTransportServiceAgents()

private void RefreshMoveButtons(bool isEnabled)
{
if (!isEnabled)
if (isEnabled && (dgvTransportServiceAgents.SelectedRows.Count >= 1))
{
btMoveUp.Enabled = false;
btMoveDown.Enabled = false;
btMoveUp.Enabled = dgvTransportServiceAgents.RowCount > 0 && dgvTransportServiceAgents.SelectedRows[0].Cells["dgvcName"].RowIndex > 0;
btMoveDown.Enabled = dgvTransportServiceAgents.RowCount > 0 && dgvTransportServiceAgents.SelectedRows[0].Cells["dgvcName"].RowIndex < (dgvTransportServiceAgents.RowCount - 1);
}
else
{
btMoveUp.Enabled = dgvTransportServiceAgents.RowCount > 0 && dgvTransportServiceAgents.SelectedRows[0].Cells["dgvcName"].RowIndex > 0;
btMoveDown.Enabled = dgvTransportServiceAgents.RowCount > 0 && dgvTransportServiceAgents.SelectedRows[0].Cells["dgvcName"].RowIndex < (dgvTransportServiceAgents.RowCount -1);
btMoveUp.Enabled = false;
btMoveDown.Enabled = false;
}
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Src/Exchange.DkimSigner/bin/Exchange 2010/ExchangeDkimSigner.dll
Binary file not shown.
Binary file modified Src/Exchange.DkimSigner/bin/Exchange 2010/ExchangeDkimSigner.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Src/Exchange.DkimSigner/bin/Exchange 2013/ExchangeDkimSigner.dll
Binary file not shown.
Binary file modified Src/Exchange.DkimSigner/bin/Exchange 2013/ExchangeDkimSigner.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 6188f10

Please sign in to comment.