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.
95 lines
3.7 KiB
C#
95 lines
3.7 KiB
C#
namespace XenAdmin.Controls.Ballooning
|
|
{
|
|
partial class MemorySpinner
|
|
{
|
|
/// <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(MemorySpinner));
|
|
this.Spinner = new System.Windows.Forms.NumericUpDown();
|
|
this.NameLabel = new System.Windows.Forms.Label();
|
|
this.iconBox = new System.Windows.Forms.PictureBox();
|
|
this.SpinnerUnits = new System.Windows.Forms.Label();
|
|
((System.ComponentModel.ISupportInitialize)(this.Spinner)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.iconBox)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// Spinner
|
|
//
|
|
resources.ApplyResources(this.Spinner, "Spinner");
|
|
this.Spinner.DecimalPlaces = 1;
|
|
this.Spinner.Maximum = new decimal(new int[] {
|
|
99999,
|
|
0,
|
|
0,
|
|
0});
|
|
this.Spinner.Name = "Spinner";
|
|
this.Spinner.ValueChanged += new System.EventHandler(this.Spinner_ValueChanged);
|
|
this.Spinner.Leave += new System.EventHandler(this.Spinner_Leave);
|
|
//
|
|
// NameLabel
|
|
//
|
|
resources.ApplyResources(this.NameLabel, "NameLabel");
|
|
this.NameLabel.Name = "NameLabel";
|
|
//
|
|
// iconBox
|
|
//
|
|
resources.ApplyResources(this.iconBox, "iconBox");
|
|
this.iconBox.Name = "iconBox";
|
|
this.iconBox.TabStop = false;
|
|
//
|
|
// SpinnerUnits
|
|
//
|
|
resources.ApplyResources(this.SpinnerUnits, "SpinnerUnits");
|
|
this.SpinnerUnits.BackColor = System.Drawing.SystemColors.Control;
|
|
this.SpinnerUnits.Name = "SpinnerUnits";
|
|
//
|
|
// MemorySpinner
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.SpinnerUnits);
|
|
this.Controls.Add(this.NameLabel);
|
|
this.Controls.Add(this.iconBox);
|
|
this.Controls.Add(this.Spinner);
|
|
this.DoubleBuffered = true;
|
|
this.Name = "MemorySpinner";
|
|
((System.ComponentModel.ISupportInitialize)(this.Spinner)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.iconBox)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.NumericUpDown Spinner;
|
|
private System.Windows.Forms.Label NameLabel;
|
|
private System.Windows.Forms.PictureBox iconBox;
|
|
private System.Windows.Forms.Label SpinnerUnits;
|
|
}
|
|
}
|