xenadmin/XenAdmin/Wizards/GenericPages/SelectMultipleVMDestinationPage.Designer.cs
Danilo Del Busso 6c584bb351
CA-375532, CA-336510, and CP-41825: Add warnings when user selects too many vCPUs (#3119)
* Tidy up `SelectMultipleVMDestinationPage.cs`
* CA-375532 & CA-336510: Add warning when importing VMs with too many vCPUs
* CA-375532 & CA-336510: Prevent users from starting appliance if a VM has too many vCPUs
* Tidy up `Page_CpuMem`: use expression-bodied properties
* Tidy up `Page_CpuMem`: use conventional naming scheme
* Tidy up `Page_CpuMem`: use explicit modifiers
* Tidy up `Page_CpuMem`: use `en-US` locale for names
* Tidy up `Page_CpuMem`: use `var` when possible
* Tidy up `Page_CpuMem`: rename `Vcpus` to `VCpus`
* Tidy up `Page_CpuMem`: reorder elements
* Tidy up `Page_CpuMem`: revert class renaming and fix `vCpus` typos
* CA-375532: Prevent users from starting VM if they select too many vCPUs
* Tidy up `Page_Finish`: use expression-bodied properties
* Tidy up `Page_Finish`: fix typo
* Tidy up `Page_CpuMem`: rename `CanStartVM` to `CanStartVm`
* Remove unnecessary using directives
* Anchor warning icon to the top-left corner of its parent
* CA-375532 & CA-336510: Warn users when selecting more vCPUs than pCPUs in the Properties page
* CP-41825: Add warning for imported VMs with > 32 vCPUs
* CP-41825: Add warning for new VMs with > 32 vCPUs
* CP-41825: Add warning for existing VMs when selecting > 32 vCPUs
* CP-41825: Update wording used to alert users running VMs with > 32vCPUs
* Remove unused local variable in `VappStartCommand.cs`
* Reword some vCPUs messages
* Simplify assignment of `CanStartImmediately` in `Page_Finish.cs`
* Simplify assignment of `CanStartVmsAutomatically` in `ImportFinishPage.cs`
* Remove useless `Count` check in `VappStartCommand`
* Rename `pictureBox1` to `warningPictureBox` and change its `SizeMode`
* Separate CPU and memory warnings in `Page_CpuMem`
* Shorten warning messages shown in `Page_CpuMem`
* Disable option to start VM when memory configuration isn't valid
* Report number of vCPUs and pCPUs when showing warning in New VM wizard
* Tidy up `CpuMemoryEditPage`: rename elements
* Tidy up `CpuMemoryEditPage`: use explicity modifiers
* Tidy up `CpuMemoryEditPage`: Rename `CPUMemoryEditPage` to `CpuMemoryEditPage`
* Tidy up `CpuMemoryEditPage`: Miscellaneous renames and improvements
* Tidy up `CpuMemoryEditPage`: Fix whitespace
* Tidy up `CpuMemoryEditPage`: Use ReSharper code formatter
* Tidy up `CpuMemoryEditPage`: Move events to own region
* Tidy up `CpuMemoryEditPage`: Move `IEditPage` members to own region
* Tidy up `CpuMemoryEditPage`: Order members outside of regions
* Replace topology and vCPU warning labels with structured warnings
* Ensure warnings ends with a dot
* Allow multiple CPU warnings to show at the same time
* Remove warning link for vCPUS > pCPUS Option is not achievable
* Enable option to force unit used in `MemorySpinner`
* Replace `NumericUpDown` with `MemorySpinner` and show warnings at bottom of control
* Check destination pCPUs count when destination is not a pool
* Do not disable option to start VMs after import if user selects a shared SR
* Add memory warning when importing appliance with too much memory
* Sort vCPUs and memory warning strings
* Remove target from `ImportWizard`'s summary
Target is not useful and can cause confusion as appliance VMs could start on non-target hosts
* The home server is needed in the summary when importing XVA. The target server is not needed in the summary when migrating a VM.
* Update warnings when the server selection changes. Corrected memory calculation.
* Show all warnings for vCPUs. Moved topology warning to the bottom. Separated methods for showing memory and vCPU warnings.
* Removed the memory setting from the VM Properties dialog. Split running VM info to a separate panel.
* Corrections to the logic for starting the VM automatically. Also, Fixed a bit the layout of the Finish page to make better use of the available space.
* Corrections as per code review.

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
Co-authored-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
2023-06-08 11:24:39 +01:00

173 lines
8.9 KiB
C#

namespace XenAdmin.Wizards.GenericPages
{
partial class SelectMultipleVMDestinationPage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing)
{
UnregisterHandlers();
if (components != null)
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SelectMultipleVMDestinationPage));
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.m_labelIntro = new XenAdmin.Controls.Common.AutoHeightLabel();
this.label1 = new System.Windows.Forms.Label();
this.m_comboBoxConnection = new XenAdmin.Controls.EnableableComboBox();
this.label2 = new XenAdmin.Controls.Common.AutoHeightLabel();
this.m_dataGridView = new System.Windows.Forms.DataGridView();
this.m_colVmName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_colTarget = new XenAdmin.Controls.EnableableComboBoxColumn();
this.tableLayoutPanelWarning = new System.Windows.Forms.TableLayoutPanel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.labelWarning = new System.Windows.Forms.Label();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.m_dataGridView)).BeginInit();
this.tableLayoutPanelWarning.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.m_labelIntro, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.m_comboBoxConnection, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.m_dataGridView, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanelWarning, 0, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// m_labelIntro
//
resources.ApplyResources(this.m_labelIntro, "m_labelIntro");
this.tableLayoutPanel1.SetColumnSpan(this.m_labelIntro, 2);
this.m_labelIntro.Name = "m_labelIntro";
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
//
// m_comboBoxConnection
//
resources.ApplyResources(this.m_comboBoxConnection, "m_comboBoxConnection");
this.m_comboBoxConnection.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.m_comboBoxConnection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.m_comboBoxConnection.FormattingEnabled = true;
this.m_comboBoxConnection.Name = "m_comboBoxConnection";
this.m_comboBoxConnection.SelectedIndexChanged += new System.EventHandler(this.m_comboBoxConnection_SelectedIndexChanged);
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.tableLayoutPanel1.SetColumnSpan(this.label2, 2);
this.label2.Name = "label2";
//
// m_dataGridView
//
this.m_dataGridView.AllowUserToAddRows = false;
this.m_dataGridView.AllowUserToDeleteRows = false;
this.m_dataGridView.AllowUserToResizeColumns = false;
this.m_dataGridView.AllowUserToResizeRows = false;
this.m_dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.m_dataGridView.BackgroundColor = System.Drawing.SystemColors.Window;
this.m_dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.m_dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.m_colVmName,
this.m_colTarget});
this.tableLayoutPanel1.SetColumnSpan(this.m_dataGridView, 2);
resources.ApplyResources(this.m_dataGridView, "m_dataGridView");
this.m_dataGridView.Name = "m_dataGridView";
this.m_dataGridView.RowHeadersVisible = false;
this.m_dataGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.m_dataGridView_CellClick);
this.m_dataGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.m_dataGridView_CellValueChanged);
this.m_dataGridView.CurrentCellDirtyStateChanged += new System.EventHandler(this.m_dataGridView_CurrentCellDirtyStateChanged);
//
// m_colVmName
//
resources.ApplyResources(this.m_colVmName, "m_colVmName");
this.m_colVmName.Name = "m_colVmName";
this.m_colVmName.ReadOnly = true;
//
// m_colTarget
//
this.m_colTarget.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
resources.ApplyResources(this.m_colTarget, "m_colTarget");
this.m_colTarget.Name = "m_colTarget";
this.m_colTarget.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// tableLayoutPanelWarning
//
resources.ApplyResources(this.tableLayoutPanelWarning, "tableLayoutPanelWarning");
this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanelWarning, 2);
this.tableLayoutPanelWarning.Controls.Add(this.pictureBox1, 0, 0);
this.tableLayoutPanelWarning.Controls.Add(this.labelWarning, 1, 0);
this.tableLayoutPanelWarning.Name = "tableLayoutPanelWarning";
//
// pictureBox1
//
this.pictureBox1.Image = global::XenAdmin.Properties.Resources._000_WarningAlert_h32bit_32;
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
//
// labelWarning
//
resources.ApplyResources(this.labelWarning, "labelWarning");
this.labelWarning.Name = "labelWarning";
//
// SelectMultipleVMDestinationPage
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "SelectMultipleVMDestinationPage";
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.m_dataGridView)).EndInit();
this.tableLayoutPanelWarning.ResumeLayout(false);
this.tableLayoutPanelWarning.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private XenAdmin.Controls.Common.AutoHeightLabel m_labelIntro;
private XenAdmin.Controls.Common.AutoHeightLabel label2;
private System.Windows.Forms.DataGridView m_dataGridView;
private System.Windows.Forms.Label label1;
private XenAdmin.Controls.EnableableComboBox m_comboBoxConnection;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelWarning;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label labelWarning;
private System.Windows.Forms.DataGridViewTextBoxColumn m_colVmName;
private Controls.EnableableComboBoxColumn m_colTarget;
}
}