CP-4946: PR-1634: Bulk import of FibreChannel LUNs in DR Wizard.

Clear All button disabled when no rows selected; Select All button
disabled when all rows selected.

Signed-off-by: Adrian Jachacy <Adrian.Jachacy@citrix.com>
This commit is contained in:
Adrian Jachacy 2013-06-28 09:04:39 +01:00
parent 58e187d981
commit 6e2b3fc40f

View File

@ -87,6 +87,8 @@ namespace XenAdmin.Wizards.DRWizards
public override bool EnableNext() public override bool EnableNext()
{ {
buttonClearAll.Enabled = SelectedSRsUuids.Count > 0;
buttonSelectAll.Enabled = SelectedSRsUuids.Count < dataGridViewSRs.Rows.OfType<SrRow>().Count();
return SelectedSRsUuids.Count > 0; return SelectedSRsUuids.Count > 0;
} }