mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-21 07:56:03 +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.
85 lines
3.7 KiB
C#
85 lines
3.7 KiB
C#
namespace XenAdmin.Controls.Ballooning
|
|
{
|
|
partial class VMMemoryControlsAdvanced
|
|
{
|
|
/// <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 Windows Form 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(VMMemoryControlsAdvanced));
|
|
this.spinnerPanel = new System.Windows.Forms.TableLayoutPanel();
|
|
this.memorySpinnerDynMin = new XenAdmin.Controls.Ballooning.MemorySpinner();
|
|
this.memorySpinnerDynMax = new XenAdmin.Controls.Ballooning.MemorySpinner();
|
|
this.memorySpinnerStatMax = new XenAdmin.Controls.Ballooning.MemorySpinner();
|
|
this.spinnerPanel.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// spinnerPanel
|
|
//
|
|
resources.ApplyResources(this.spinnerPanel, "spinnerPanel");
|
|
this.spinnerPanel.Controls.Add(this.memorySpinnerDynMin, 0, 0);
|
|
this.spinnerPanel.Controls.Add(this.memorySpinnerDynMax, 0, 1);
|
|
this.spinnerPanel.Controls.Add(this.memorySpinnerStatMax, 0, 2);
|
|
this.spinnerPanel.Name = "spinnerPanel";
|
|
//
|
|
// memorySpinnerDynMin
|
|
//
|
|
resources.ApplyResources(this.memorySpinnerDynMin, "memorySpinnerDynMin");
|
|
this.memorySpinnerDynMin.Name = "memorySpinnerDynMin";
|
|
this.memorySpinnerDynMin.SpinnerValueChanged += new System.EventHandler(this.Spinners_ValueChanged);
|
|
//
|
|
// memorySpinnerDynMax
|
|
//
|
|
resources.ApplyResources(this.memorySpinnerDynMax, "memorySpinnerDynMax");
|
|
this.memorySpinnerDynMax.Name = "memorySpinnerDynMax";
|
|
this.memorySpinnerDynMax.SpinnerValueChanged += new System.EventHandler(this.Spinners_ValueChanged);
|
|
//
|
|
// memorySpinnerStatMax
|
|
//
|
|
resources.ApplyResources(this.memorySpinnerStatMax, "memorySpinnerStatMax");
|
|
this.memorySpinnerStatMax.Name = "memorySpinnerStatMax";
|
|
this.memorySpinnerStatMax.SpinnerValueChanged += new System.EventHandler(this.Spinners_ValueChanged);
|
|
//
|
|
// VMMemoryControlsAdvanced
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.spinnerPanel);
|
|
this.Name = "VMMemoryControlsAdvanced";
|
|
this.spinnerPanel.ResumeLayout(false);
|
|
this.spinnerPanel.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TableLayoutPanel spinnerPanel;
|
|
private MemorySpinner memorySpinnerDynMin;
|
|
private MemorySpinner memorySpinnerStatMax;
|
|
private MemorySpinner memorySpinnerDynMax;
|
|
}
|
|
}
|