XSI-1476: No need to disable the post-update tasks textbox.

Also, prevent OnPageUpdated being called twice.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
Konstantina Chremmou 2023-08-14 23:25:13 +01:00
parent fd1c08218a
commit cda79820b3
2 changed files with 6 additions and 12 deletions

View File

@ -1,5 +1,3 @@
using System.Windows.Forms;
namespace XenAdmin.Wizards.PatchingWizard
{
partial class PatchingWizard_ModePage
@ -125,7 +123,7 @@ namespace XenAdmin.Wizards.PatchingWizard
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private XenAdmin.Controls.Common.AutoHeightLabel autoHeightLabel1;
private System.Windows.Forms.CheckBox removeUpdateFileCheckBox;
private RadioButton AutomaticRadioButton;
private ToolTip automaticRadioButtonTooltip;
private System.Windows.Forms.RadioButton AutomaticRadioButton;
private System.Windows.Forms.ToolTip automaticRadioButtonTooltip;
}
}

View File

@ -168,12 +168,6 @@ namespace XenAdmin.Wizards.PatchingWizard
return AutomaticRadioButton.Checked || ManualRadioButton.Checked;
}
private void UpdateEnablement()
{
textBoxLog.Enabled = ManualRadioButton.Checked;
OnPageUpdated();
}
#region Accessors
public WizardMode WizardMode { get; set; }
@ -196,12 +190,14 @@ namespace XenAdmin.Wizards.PatchingWizard
private void AutomaticRadioButton_CheckedChanged(object sender, EventArgs e)
{
UpdateEnablement();
if (AutomaticRadioButton.Checked)
OnPageUpdated();
}
private void ManualRadioButton_CheckedChanged(object sender, EventArgs e)
{
UpdateEnablement();
if (ManualRadioButton.Checked)
OnPageUpdated();
}
private void button1_Click(object sender, EventArgs e)