From 58be7ff5f9ead07a33b4a0b4950c7ec57ac9cad4 Mon Sep 17 00:00:00 2001 From: Danilo Del Busso Date: Mon, 22 May 2023 10:59:05 +0100 Subject: [PATCH] CP-41573: Make `AcceptEuaDialog` resizable Signed-off-by: Danilo Del Busso --- XenAdmin/Dialogs/AcceptEuaDialog.Designer.cs | 2 ++ XenAdmin/Dialogs/AcceptEuaDialog.cs | 1 + XenAdmin/Dialogs/AcceptEuaDialog.resx | 8 +------- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/XenAdmin/Dialogs/AcceptEuaDialog.Designer.cs b/XenAdmin/Dialogs/AcceptEuaDialog.Designer.cs index 944de30a6..7b354aaaa 100644 --- a/XenAdmin/Dialogs/AcceptEuaDialog.Designer.cs +++ b/XenAdmin/Dialogs/AcceptEuaDialog.Designer.cs @@ -125,8 +125,10 @@ namespace XenAdmin.Dialogs this.BackColor = System.Drawing.SystemColors.Control; this.CancelButton = this.declineButton; this.Controls.Add(this.tableLayoutPanel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; this.HelpButton = false; this.Name = "AcceptEuaDialog"; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.tableLayoutPanel.ResumeLayout(false); this.tableLayoutPanel.PerformLayout(); this.warningTableLayoutPanel.ResumeLayout(false); diff --git a/XenAdmin/Dialogs/AcceptEuaDialog.cs b/XenAdmin/Dialogs/AcceptEuaDialog.cs index b4dbef531..59e560000 100644 --- a/XenAdmin/Dialogs/AcceptEuaDialog.cs +++ b/XenAdmin/Dialogs/AcceptEuaDialog.cs @@ -42,6 +42,7 @@ namespace XenAdmin.Dialogs public AcceptEuaDialog(List euas) { InitializeComponent(); + _euas = euas; _warnings = new HashSet(); warningTableLayoutPanel.Visible = false; diff --git a/XenAdmin/Dialogs/AcceptEuaDialog.resx b/XenAdmin/Dialogs/AcceptEuaDialog.resx index 44c2d5d43..bab7fc887 100644 --- a/XenAdmin/Dialogs/AcceptEuaDialog.resx +++ b/XenAdmin/Dialogs/AcceptEuaDialog.resx @@ -121,16 +121,13 @@ True - - - GrowAndShrink - 1 True + Fill @@ -474,9 +471,6 @@ True - - GrowAndShrink - 612, 491