Set default value of property Empty and hide it from the designer.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2021-05-17 13:24:46 +01:00
parent 858ab54950
commit 04c42158f8
5 changed files with 4 additions and 8 deletions

View File

@ -38,11 +38,6 @@ namespace XenAdmin.Controls
{
public class CDChanger : ISODropDownBox
{
public CDChanger()
{
Empty = true;
}
public VBD Drive
{
get

View File

@ -179,7 +179,9 @@ namespace XenAdmin.Controls
}
}
public bool Empty { get; set; }
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public bool Empty { get; set; } = true;
private void AddSR(ToStringWrapper<SR> srWrapper)
{

View File

@ -88,7 +88,6 @@ namespace XenAdmin.Controls
this.cdChanger1.Drive = null;
this.cdChanger1.DropDownHeight = 500;
this.cdChanger1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cdChanger1.Empty = true;
this.cdChanger1.FormattingEnabled = true;
this.cdChanger1.Name = "cdChanger1";
this.cdChanger1.SelectedCD = null;

View File

@ -101,7 +101,6 @@ namespace XenAdmin.Wizards.NewVMWizard
this.CdDropDownBox.connection = null;
this.CdDropDownBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.CdDropDownBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CdDropDownBox.Empty = false;
this.CdDropDownBox.FormattingEnabled = true;
this.CdDropDownBox.Name = "CdDropDownBox";
this.CdDropDownBox.SelectedCD = null;

View File

@ -55,6 +55,7 @@ namespace XenAdmin.Wizards.NewVMWizard
public Page_InstallationMedia()
{
InitializeComponent();
CdDropDownBox.Empty = false;
}
bool defaultTemplate, userTemplate, hvm, eli, installMethods, installCd, installUrl, cds, installed;