Skip to content

Commit

Permalink
Minor layout tweaks (margins, padding, alignment).
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Chremmou <[email protected]>
  • Loading branch information
kc284 committed Nov 1, 2023
1 parent 3be1d02 commit fcd9b19
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 170 deletions.
2 changes: 2 additions & 0 deletions XenAdmin/Controls/ComboBoxes/ISODropDownBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ private void AddSR(ToStringWrapper<SR> srWrapper)
}
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public IXenConnection connection
{
set
Expand Down
33 changes: 11 additions & 22 deletions XenAdmin/Controls/MultipleDvdIsoList.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions XenAdmin/Controls/MultipleDvdIsoList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public Color LabelNewCdForeColor
[Category("Appearance")]
public Color LinkLabelLinkColor
{
get => linkLabel1.LinkColor;
set => linkLabel1.LinkColor = value;
get => linkLabelEject.LinkColor;
set => linkLabelEject.LinkColor = value;
}

#endregion
Expand Down Expand Up @@ -174,8 +174,7 @@ private void RefreshDrives()
comboBoxDrive.Visible = false;
cdChanger1.Visible = false;
labelSingleDvd.Visible = false;
linkLabel1.Visible = false;
panel1.Visible = false;
linkLabelEject.Visible = false;
newCDLabel.Visible = VM != null && !VM.is_control_domain;

}
Expand All @@ -187,17 +186,15 @@ private void RefreshDrives()
labelSingleDvd.Visible = true;
tableLayoutPanel1.ColumnStyles[0].Width = labelSingleDvd.Width;
newCDLabel.Visible = false;
panel1.Visible = true;
linkLabel1.Visible = true;
linkLabelEject.Visible = true;
}
else
{
comboBoxDrive.Visible = true;
cdChanger1.Visible = true;
labelSingleDvd.Visible = false;
panel1.Visible = true;
newCDLabel.Visible = false;
linkLabel1.Visible = true;
linkLabelEject.Visible = true;
}

_inRefresh = false;
Expand Down Expand Up @@ -279,7 +276,7 @@ private void CreateDriveAction_ShowUserInstruction(string message)
});
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
private void linkLabelEject_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (cdChanger1.Drive != null)
cdChanger1.ChangeCD(null);
Expand Down
Loading

0 comments on commit fcd9b19

Please sign in to comment.