mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-23 00:46:03 +01:00
fdbcdcf0e1
* CP-29856: Support minimum number of vCPUs in guest templates - Show a warning if the user wants to set a smaller number of vCPUs than the minimum specified in the template - Add a null check; Set the warning label text before making it visible to avoid flickering. Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
291 lines
14 KiB
C#
291 lines
14 KiB
C#
namespace XenAdmin.SettingsPanels
|
|
{
|
|
partial class CPUMemoryEditPage
|
|
{
|
|
/// <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 && (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(CPUMemoryEditPage));
|
|
this.lblSliderHighest = new System.Windows.Forms.Label();
|
|
this.lblSliderNormal = new System.Windows.Forms.Label();
|
|
this.lblSliderLowest = new System.Windows.Forms.Label();
|
|
this.lblPriority = new System.Windows.Forms.Label();
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.comboBoxInitialVCPUs = new System.Windows.Forms.ComboBox();
|
|
this.labelInitialVCPUs = new System.Windows.Forms.Label();
|
|
this.labelInvalidVCPUWarning = new System.Windows.Forms.Label();
|
|
this.comboBoxTopology = new XenAdmin.Controls.CPUTopologyComboBox();
|
|
this.labelTopology = new System.Windows.Forms.Label();
|
|
this.MemWarningLabel = new System.Windows.Forms.Label();
|
|
this.panel2 = new System.Windows.Forms.Panel();
|
|
this.lblMB = new System.Windows.Forms.Label();
|
|
this.nudMemory = new System.Windows.Forms.NumericUpDown();
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.transparentTrackBar1 = new XenAdmin.Controls.TransparentTrackBar();
|
|
this.lblVCPUs = new System.Windows.Forms.Label();
|
|
this.lblVcpuWarning = new System.Windows.Forms.LinkLabel();
|
|
this.lblMemory = new System.Windows.Forms.Label();
|
|
this.VCPUWarningLabel = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.comboBoxVCPUs = new System.Windows.Forms.ComboBox();
|
|
this.initialVCPUWarningLabel = new System.Windows.Forms.Label();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
this.panel2.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.nudMemory)).BeginInit();
|
|
this.panel1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// lblSliderHighest
|
|
//
|
|
resources.ApplyResources(this.lblSliderHighest, "lblSliderHighest");
|
|
this.lblSliderHighest.Name = "lblSliderHighest";
|
|
//
|
|
// lblSliderNormal
|
|
//
|
|
resources.ApplyResources(this.lblSliderNormal, "lblSliderNormal");
|
|
this.lblSliderNormal.Name = "lblSliderNormal";
|
|
//
|
|
// lblSliderLowest
|
|
//
|
|
resources.ApplyResources(this.lblSliderLowest, "lblSliderLowest");
|
|
this.lblSliderLowest.Name = "lblSliderLowest";
|
|
//
|
|
// lblPriority
|
|
//
|
|
resources.ApplyResources(this.lblPriority, "lblPriority");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.lblPriority, 4);
|
|
this.lblPriority.Name = "lblPriority";
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
|
|
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
|
|
this.tableLayoutPanel1.Controls.Add(this.initialVCPUWarningLabel, 2, 6);
|
|
this.tableLayoutPanel1.Controls.Add(this.comboBoxInitialVCPUs, 1, 6);
|
|
this.tableLayoutPanel1.Controls.Add(this.labelInitialVCPUs, 0, 6);
|
|
this.tableLayoutPanel1.Controls.Add(this.labelInvalidVCPUWarning, 1, 5);
|
|
this.tableLayoutPanel1.Controls.Add(this.comboBoxTopology, 1, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.labelTopology, 0, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.MemWarningLabel, 3, 10);
|
|
this.tableLayoutPanel1.Controls.Add(this.panel2, 1, 10);
|
|
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 9);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblPriority, 0, 8);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblVCPUs, 0, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblVcpuWarning, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblMemory, 0, 10);
|
|
this.tableLayoutPanel1.Controls.Add(this.VCPUWarningLabel, 2, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.comboBoxVCPUs, 1, 2);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
//
|
|
// comboBoxInitialVCPUs
|
|
//
|
|
this.comboBoxInitialVCPUs.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBoxInitialVCPUs.FormattingEnabled = true;
|
|
resources.ApplyResources(this.comboBoxInitialVCPUs, "comboBoxInitialVCPUs");
|
|
this.comboBoxInitialVCPUs.Name = "comboBoxInitialVCPUs";
|
|
this.comboBoxInitialVCPUs.SelectedIndexChanged += new System.EventHandler(this.comboBoxInitialVCPUs_SelectedIndexChanged);
|
|
//
|
|
// labelInitialVCPUs
|
|
//
|
|
resources.ApplyResources(this.labelInitialVCPUs, "labelInitialVCPUs");
|
|
this.labelInitialVCPUs.Name = "labelInitialVCPUs";
|
|
//
|
|
// labelInvalidVCPUWarning
|
|
//
|
|
resources.ApplyResources(this.labelInvalidVCPUWarning, "labelInvalidVCPUWarning");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.labelInvalidVCPUWarning, 3);
|
|
this.labelInvalidVCPUWarning.ForeColor = System.Drawing.Color.Red;
|
|
this.labelInvalidVCPUWarning.Name = "labelInvalidVCPUWarning";
|
|
//
|
|
// comboBoxTopology
|
|
//
|
|
this.tableLayoutPanel1.SetColumnSpan(this.comboBoxTopology, 3);
|
|
this.comboBoxTopology.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
resources.ApplyResources(this.comboBoxTopology, "comboBoxTopology");
|
|
this.comboBoxTopology.FormattingEnabled = true;
|
|
this.comboBoxTopology.Name = "comboBoxTopology";
|
|
this.comboBoxTopology.SelectedIndexChanged += new System.EventHandler(this.comboBoxTopology_SelectedIndexChanged);
|
|
//
|
|
// labelTopology
|
|
//
|
|
resources.ApplyResources(this.labelTopology, "labelTopology");
|
|
this.labelTopology.Name = "labelTopology";
|
|
//
|
|
// MemWarningLabel
|
|
//
|
|
resources.ApplyResources(this.MemWarningLabel, "MemWarningLabel");
|
|
this.MemWarningLabel.ForeColor = System.Drawing.Color.Red;
|
|
this.MemWarningLabel.Name = "MemWarningLabel";
|
|
this.tableLayoutPanel1.SetRowSpan(this.MemWarningLabel, 2);
|
|
//
|
|
// panel2
|
|
//
|
|
resources.ApplyResources(this.panel2, "panel2");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.panel2, 2);
|
|
this.panel2.Controls.Add(this.lblMB);
|
|
this.panel2.Controls.Add(this.nudMemory);
|
|
this.panel2.Name = "panel2";
|
|
//
|
|
// lblMB
|
|
//
|
|
resources.ApplyResources(this.lblMB, "lblMB");
|
|
this.lblMB.Name = "lblMB";
|
|
//
|
|
// nudMemory
|
|
//
|
|
resources.ApplyResources(this.nudMemory, "nudMemory");
|
|
this.nudMemory.Maximum = new decimal(new int[] {
|
|
1048576,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nudMemory.Minimum = new decimal(new int[] {
|
|
64,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nudMemory.Name = "nudMemory";
|
|
this.nudMemory.Value = new decimal(new int[] {
|
|
64,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nudMemory.ValueChanged += new System.EventHandler(this.nudMemory_ValueChanged);
|
|
//
|
|
// panel1
|
|
//
|
|
resources.ApplyResources(this.panel1, "panel1");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.panel1, 4);
|
|
this.panel1.Controls.Add(this.lblSliderHighest);
|
|
this.panel1.Controls.Add(this.lblSliderNormal);
|
|
this.panel1.Controls.Add(this.lblSliderLowest);
|
|
this.panel1.Controls.Add(this.transparentTrackBar1);
|
|
this.panel1.Name = "panel1";
|
|
//
|
|
// transparentTrackBar1
|
|
//
|
|
resources.ApplyResources(this.transparentTrackBar1, "transparentTrackBar1");
|
|
this.transparentTrackBar1.BackColor = System.Drawing.Color.Transparent;
|
|
this.transparentTrackBar1.Name = "transparentTrackBar1";
|
|
this.transparentTrackBar1.TabStop = false;
|
|
//
|
|
// lblVCPUs
|
|
//
|
|
resources.ApplyResources(this.lblVCPUs, "lblVCPUs");
|
|
this.lblVCPUs.Name = "lblVCPUs";
|
|
//
|
|
// lblVcpuWarning
|
|
//
|
|
resources.ApplyResources(this.lblVcpuWarning, "lblVcpuWarning");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.lblVcpuWarning, 4);
|
|
this.lblVcpuWarning.LinkColor = System.Drawing.SystemColors.ActiveCaption;
|
|
this.lblVcpuWarning.Name = "lblVcpuWarning";
|
|
this.lblVcpuWarning.TabStop = true;
|
|
this.lblVcpuWarning.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lblVcpuWarning_LinkClicked);
|
|
//
|
|
// lblMemory
|
|
//
|
|
resources.ApplyResources(this.lblMemory, "lblMemory");
|
|
this.lblMemory.Name = "lblMemory";
|
|
//
|
|
// VCPUWarningLabel
|
|
//
|
|
resources.ApplyResources(this.VCPUWarningLabel, "VCPUWarningLabel");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.VCPUWarningLabel, 2);
|
|
this.VCPUWarningLabel.ForeColor = System.Drawing.Color.Red;
|
|
this.VCPUWarningLabel.Name = "VCPUWarningLabel";
|
|
this.tableLayoutPanel1.SetRowSpan(this.VCPUWarningLabel, 2);
|
|
//
|
|
// label1
|
|
//
|
|
resources.ApplyResources(this.label1, "label1");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.label1, 4);
|
|
this.label1.Name = "label1";
|
|
//
|
|
// comboBoxVCPUs
|
|
//
|
|
this.comboBoxVCPUs.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBoxVCPUs.FormattingEnabled = true;
|
|
resources.ApplyResources(this.comboBoxVCPUs, "comboBoxVCPUs");
|
|
this.comboBoxVCPUs.Name = "comboBoxVCPUs";
|
|
this.comboBoxVCPUs.SelectedIndexChanged += new System.EventHandler(this.comboBoxVCPUs_SelectedIndexChanged);
|
|
//
|
|
// initialVCPUWarningLabel
|
|
//
|
|
resources.ApplyResources(this.initialVCPUWarningLabel, "initialVCPUWarningLabel");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.initialVCPUWarningLabel, 2);
|
|
this.initialVCPUWarningLabel.ForeColor = System.Drawing.Color.Red;
|
|
this.initialVCPUWarningLabel.Name = "initialVCPUWarningLabel";
|
|
//
|
|
// CPUMemoryEditPage
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.BackColor = System.Drawing.SystemColors.Control;
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.DoubleBuffered = true;
|
|
this.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.Name = "CPUMemoryEditPage";
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
this.panel2.ResumeLayout(false);
|
|
this.panel2.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.nudMemory)).EndInit();
|
|
this.panel1.ResumeLayout(false);
|
|
this.panel1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
public System.Windows.Forms.NumericUpDown nudMemory;
|
|
private System.Windows.Forms.Label lblMB;
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.Label lblSliderHighest;
|
|
private System.Windows.Forms.Label lblSliderNormal;
|
|
private System.Windows.Forms.Label lblSliderLowest;
|
|
private System.Windows.Forms.Label lblPriority;
|
|
private System.Windows.Forms.Label lblVCPUs;
|
|
private System.Windows.Forms.Label lblMemory;
|
|
private System.Windows.Forms.LinkLabel lblVcpuWarning;
|
|
private XenAdmin.Controls.TransparentTrackBar transparentTrackBar1;
|
|
private System.Windows.Forms.Panel panel2;
|
|
private System.Windows.Forms.Label VCPUWarningLabel;
|
|
private System.Windows.Forms.Label MemWarningLabel;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label labelTopology;
|
|
private XenAdmin.Controls.CPUTopologyComboBox comboBoxTopology;
|
|
private System.Windows.Forms.Label labelInvalidVCPUWarning;
|
|
private System.Windows.Forms.ComboBox comboBoxVCPUs;
|
|
private System.Windows.Forms.ComboBox comboBoxInitialVCPUs;
|
|
private System.Windows.Forms.Label labelInitialVCPUs;
|
|
private System.Windows.Forms.Label initialVCPUWarningLabel;
|
|
}
|
|
}
|