Skip to content

Commit fcd9b19

Browse files
Konstantina ChremmouKonstantina Chremmou
authored andcommitted
Minor layout tweaks (margins, padding, alignment).
Signed-off-by: Konstantina Chremmou <[email protected]>
1 parent 3be1d02 commit fcd9b19

File tree

4 files changed

+98
-170
lines changed

4 files changed

+98
-170
lines changed

XenAdmin/Controls/ComboBoxes/ISODropDownBox.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ private void AddSR(ToStringWrapper<SR> srWrapper)
232232
}
233233
}
234234

235+
[Browsable(false)]
236+
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
235237
public IXenConnection connection
236238
{
237239
set

XenAdmin/Controls/MultipleDvdIsoList.Designer.cs

Lines changed: 11 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

XenAdmin/Controls/MultipleDvdIsoList.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public Color LabelNewCdForeColor
8888
[Category("Appearance")]
8989
public Color LinkLabelLinkColor
9090
{
91-
get => linkLabel1.LinkColor;
92-
set => linkLabel1.LinkColor = value;
91+
get => linkLabelEject.LinkColor;
92+
set => linkLabelEject.LinkColor = value;
9393
}
9494

9595
#endregion
@@ -174,8 +174,7 @@ private void RefreshDrives()
174174
comboBoxDrive.Visible = false;
175175
cdChanger1.Visible = false;
176176
labelSingleDvd.Visible = false;
177-
linkLabel1.Visible = false;
178-
panel1.Visible = false;
177+
linkLabelEject.Visible = false;
179178
newCDLabel.Visible = VM != null && !VM.is_control_domain;
180179

181180
}
@@ -187,17 +186,15 @@ private void RefreshDrives()
187186
labelSingleDvd.Visible = true;
188187
tableLayoutPanel1.ColumnStyles[0].Width = labelSingleDvd.Width;
189188
newCDLabel.Visible = false;
190-
panel1.Visible = true;
191-
linkLabel1.Visible = true;
189+
linkLabelEject.Visible = true;
192190
}
193191
else
194192
{
195193
comboBoxDrive.Visible = true;
196194
cdChanger1.Visible = true;
197195
labelSingleDvd.Visible = false;
198-
panel1.Visible = true;
199196
newCDLabel.Visible = false;
200-
linkLabel1.Visible = true;
197+
linkLabelEject.Visible = true;
201198
}
202199

203200
_inRefresh = false;
@@ -279,7 +276,7 @@ private void CreateDriveAction_ShowUserInstruction(string message)
279276
});
280277
}
281278

282-
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
279+
private void linkLabelEject_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
283280
{
284281
if (cdChanger1.Drive != null)
285282
cdChanger1.ChangeCD(null);

0 commit comments

Comments
 (0)