CP-41573: Make AcceptEuaDialog resizable

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-05-22 10:59:05 +01:00 committed by Konstantina Chremmou
parent c0f849e4fa
commit 58be7ff5f9
3 changed files with 4 additions and 7 deletions

View File

@ -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);

View File

@ -42,6 +42,7 @@ namespace XenAdmin.Dialogs
public AcceptEuaDialog(List<string> euas)
{
InitializeComponent();
_euas = euas;
_warnings = new HashSet<string>();
warningTableLayoutPanel.Visible = false;

View File

@ -121,16 +121,13 @@
<data name="tableLayoutPanel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="tableLayoutPanel.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel.ColumnCount" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="infoLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="infoLabel.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
@ -474,9 +471,6 @@
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="$this.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>612, 491</value>
</data>