CP-4959: EA-1246: If RPUW cancelled, inform users about restarting it.

Minor code refactoring to address the comment raised in review #2003.

Signed-off-by: Adrian Jachacy <Adrian.Jachacy@citrix.com>
This commit is contained in:
Adrian Jachacy 2013-07-24 11:01:53 +01:00
parent 635a794e7c
commit 5ee8a569ee

View File

@ -168,10 +168,12 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
private void ShowCanBeResumedInfo()
{
new ThreeButtonDialog(new ThreeButtonDialog.Details(SystemIcons.Information,
using (var dialog = new ThreeButtonDialog(new ThreeButtonDialog.Details(SystemIcons.Information,
Messages.ROLLING_UPGRADE_CAN_RESUME_UPGRADE,
Messages.ROLLING_POOL_UPGRADE)).ShowDialog(
Program.MainWindow);
Messages.ROLLING_POOL_UPGRADE)))
{
dialog.ShowDialog(Program.MainWindow);
}
}
protected override void OnClosed(System.EventArgs e)