mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
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:
parent
858ab54950
commit
04c42158f8
@ -38,11 +38,6 @@ namespace XenAdmin.Controls
|
||||
{
|
||||
public class CDChanger : ISODropDownBox
|
||||
{
|
||||
public CDChanger()
|
||||
{
|
||||
Empty = true;
|
||||
}
|
||||
|
||||
public VBD Drive
|
||||
{
|
||||
get
|
||||
|
@ -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)
|
||||
{
|
||||
|
1
XenAdmin/Controls/MultipleDvdIsoList.Designer.cs
generated
1
XenAdmin/Controls/MultipleDvdIsoList.Designer.cs
generated
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user