mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-30 07:40:13 +01:00
4da67c0590
- Memory Tab uses GB units for values greater or equal to 1 GB, otherwise show in MB; - Search Tab displays values in GB or MB in the same as the Memory Tab (e.g. 512 MB of 1 GB, 256 MB of 512 MB, 2.5 GB of 16 GB). - The shiny bar present in the Memory Tab and in Memory Settings dialog shows the scaling in the following way: If smaller than 1 GB, then show as before, else show only labels with values multiples of half a GB. - The units used in Memory Setting Dialog are set depending on the static_max. If it is greater or equal to 1 GB, then the units are GB, else MB. The user does not have the possibility of changing them.
172 lines
7.7 KiB
C#
172 lines
7.7 KiB
C#
namespace XenAdmin.Controls.Ballooning
|
|
{
|
|
partial class VMMemoryControlsNoEdit
|
|
{
|
|
/// <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(VMMemoryControlsNoEdit));
|
|
this.iconBoxDynMin = new System.Windows.Forms.PictureBox();
|
|
this.iconBoxDynMax = new System.Windows.Forms.PictureBox();
|
|
this.labelDynMin = new System.Windows.Forms.Label();
|
|
this.labelDynMax = new System.Windows.Forms.Label();
|
|
this.labelStatMax = new System.Windows.Forms.Label();
|
|
this.valueDynMin = new System.Windows.Forms.Label();
|
|
this.valueDynMax = new System.Windows.Forms.Label();
|
|
this.valueStatMax = new System.Windows.Forms.Label();
|
|
this.unitsDynMin = new System.Windows.Forms.Label();
|
|
this.unitsDynMax = new System.Windows.Forms.Label();
|
|
this.unitsStatMax = new System.Windows.Forms.Label();
|
|
this.editButton = new System.Windows.Forms.Button();
|
|
this.vmShinyBar = new XenAdmin.Controls.Ballooning.VMShinyBar();
|
|
((System.ComponentModel.ISupportInitialize)(this.iconBoxDynMin)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.iconBoxDynMax)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// iconBoxDynMin
|
|
//
|
|
resources.ApplyResources(this.iconBoxDynMin, "iconBoxDynMin");
|
|
this.iconBoxDynMin.BackColor = System.Drawing.Color.Transparent;
|
|
this.iconBoxDynMin.Image = global::XenAdmin.Properties.Resources.memory_dynmin_slider_noedit_small;
|
|
this.iconBoxDynMin.Name = "iconBoxDynMin";
|
|
this.iconBoxDynMin.TabStop = false;
|
|
//
|
|
// iconBoxDynMax
|
|
//
|
|
resources.ApplyResources(this.iconBoxDynMax, "iconBoxDynMax");
|
|
this.iconBoxDynMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.iconBoxDynMax.Image = global::XenAdmin.Properties.Resources.memory_dynmax_slider_noedit_small;
|
|
this.iconBoxDynMax.Name = "iconBoxDynMax";
|
|
this.iconBoxDynMax.TabStop = false;
|
|
//
|
|
// labelDynMin
|
|
//
|
|
resources.ApplyResources(this.labelDynMin, "labelDynMin");
|
|
this.labelDynMin.BackColor = System.Drawing.Color.Transparent;
|
|
this.labelDynMin.Name = "labelDynMin";
|
|
//
|
|
// labelDynMax
|
|
//
|
|
resources.ApplyResources(this.labelDynMax, "labelDynMax");
|
|
this.labelDynMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.labelDynMax.Name = "labelDynMax";
|
|
//
|
|
// labelStatMax
|
|
//
|
|
resources.ApplyResources(this.labelStatMax, "labelStatMax");
|
|
this.labelStatMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.labelStatMax.Name = "labelStatMax";
|
|
//
|
|
// valueDynMin
|
|
//
|
|
resources.ApplyResources(this.valueDynMin, "valueDynMin");
|
|
this.valueDynMin.BackColor = System.Drawing.Color.Transparent;
|
|
this.valueDynMin.Name = "valueDynMin";
|
|
//
|
|
// valueDynMax
|
|
//
|
|
resources.ApplyResources(this.valueDynMax, "valueDynMax");
|
|
this.valueDynMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.valueDynMax.Name = "valueDynMax";
|
|
//
|
|
// valueStatMax
|
|
//
|
|
resources.ApplyResources(this.valueStatMax, "valueStatMax");
|
|
this.valueStatMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.valueStatMax.Name = "valueStatMax";
|
|
//
|
|
// unitsDynMin
|
|
//
|
|
resources.ApplyResources(this.unitsDynMin, "unitsDynMin");
|
|
this.unitsDynMin.BackColor = System.Drawing.Color.Transparent;
|
|
this.unitsDynMin.Name = "unitsDynMin";
|
|
//
|
|
// unitsDynMax
|
|
//
|
|
resources.ApplyResources(this.unitsDynMax, "unitsDynMax");
|
|
this.unitsDynMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.unitsDynMax.Name = "unitsDynMax";
|
|
//
|
|
// unitsStatMax
|
|
//
|
|
resources.ApplyResources(this.unitsStatMax, "unitsStatMax");
|
|
this.unitsStatMax.BackColor = System.Drawing.Color.Transparent;
|
|
this.unitsStatMax.Name = "unitsStatMax";
|
|
//
|
|
// editButton
|
|
//
|
|
resources.ApplyResources(this.editButton, "editButton");
|
|
this.editButton.Name = "editButton";
|
|
this.editButton.UseVisualStyleBackColor = true;
|
|
this.editButton.Click += new System.EventHandler(this.editButton_Click);
|
|
//
|
|
// vmShinyBar
|
|
//
|
|
resources.ApplyResources(this.vmShinyBar, "vmShinyBar");
|
|
this.vmShinyBar.Name = "vmShinyBar";
|
|
//
|
|
// VMMemoryControlsNoEdit
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.editButton);
|
|
this.Controls.Add(this.unitsStatMax);
|
|
this.Controls.Add(this.unitsDynMax);
|
|
this.Controls.Add(this.unitsDynMin);
|
|
this.Controls.Add(this.valueStatMax);
|
|
this.Controls.Add(this.valueDynMax);
|
|
this.Controls.Add(this.valueDynMin);
|
|
this.Controls.Add(this.labelStatMax);
|
|
this.Controls.Add(this.labelDynMax);
|
|
this.Controls.Add(this.labelDynMin);
|
|
this.Controls.Add(this.iconBoxDynMax);
|
|
this.Controls.Add(this.iconBoxDynMin);
|
|
this.Controls.Add(this.vmShinyBar);
|
|
this.Name = "VMMemoryControlsNoEdit";
|
|
((System.ComponentModel.ISupportInitialize)(this.iconBoxDynMin)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.iconBoxDynMax)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private VMShinyBar vmShinyBar;
|
|
private System.Windows.Forms.PictureBox iconBoxDynMin;
|
|
private System.Windows.Forms.PictureBox iconBoxDynMax;
|
|
private System.Windows.Forms.Label labelDynMin;
|
|
private System.Windows.Forms.Label labelDynMax;
|
|
private System.Windows.Forms.Label labelStatMax;
|
|
private System.Windows.Forms.Label valueDynMin;
|
|
private System.Windows.Forms.Label valueDynMax;
|
|
private System.Windows.Forms.Label valueStatMax;
|
|
private System.Windows.Forms.Label unitsDynMin;
|
|
private System.Windows.Forms.Label unitsDynMax;
|
|
private System.Windows.Forms.Label unitsStatMax;
|
|
private System.Windows.Forms.Button editButton;
|
|
}
|
|
}
|