mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CA-216752: Not all wizards progress through to the next page by pressing the Enter key
- Added SelectDefaultControl() to more wizard pages Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
508f638b3a
commit
0115461f66
@ -101,6 +101,12 @@ namespace XenAdmin.Wizards.BugToolWizardFiles
|
||||
base.PageLeave(direction, ref cancel);
|
||||
}
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
{
|
||||
if (string.IsNullOrEmpty(m_textBoxLocation.Text))
|
||||
m_textBoxLocation.Select();
|
||||
}
|
||||
|
||||
public string OutputFile
|
||||
{
|
||||
get
|
||||
|
@ -109,6 +109,11 @@ namespace XenAdmin.Wizards.BugToolWizardFiles
|
||||
CancelAction();
|
||||
}
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
{
|
||||
flickerFreeListBox1.Select();
|
||||
}
|
||||
|
||||
public List<Host> SelectedHosts { private get; set; }
|
||||
public IEnumerable<Capability> CapabilityList { private get; set; }
|
||||
|
||||
|
@ -82,6 +82,12 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
|
||||
|
||||
if (SrWizardType.UUID != null)
|
||||
listBoxCifsSRs.SetMustSelectUUID(SrWizardType.UUID);
|
||||
}
|
||||
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
{
|
||||
CifsServerPathTextBox.Select();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -108,6 +108,11 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
|
||||
this.comboBoxCifsSharename.Items.AddRange(add_srs.ToArray());
|
||||
}
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
{
|
||||
comboBoxCifsSharename.Select();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Accessors
|
||||
|
@ -230,6 +230,11 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
|
||||
return Helpers.DundeeOrGreater(Connection) ? Messages.WIZARD_BUTTON_NEXT : Messages.NEWSR_LVMOHBA_NEXT_TEXT;
|
||||
}
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
{
|
||||
dataGridView.Select();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Event handlers
|
||||
|
@ -89,6 +89,11 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
|
||||
nfsVersionLabel.Visible = nfsVersionSelectorTableLayoutPanel.Visible = Helpers.DundeeOrGreater(Connection);
|
||||
}
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
{
|
||||
NfsServerPathTextBox.Select();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void UpdateButtons()
|
||||
|
Loading…
Reference in New Issue
Block a user