mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
c53e25d2d3
1. Check the Xenserver platform version and display the host disk read/write threshold and metric weighting for Dundee or later XenServer. 2. Update the metric weighting page to make it autosize-able. Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
252 lines
13 KiB
C#
252 lines
13 KiB
C#
namespace XenAdmin.SettingsPanels
|
|
{
|
|
partial class WlbMetricWeightingPage
|
|
{
|
|
/// <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(WlbMetricWeightingPage));
|
|
this.labelBlurb = new System.Windows.Forms.Label();
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.decentGroupBox1 = new XenAdmin.Controls.DecentGroupBox();
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.labelMoreImportant = new System.Windows.Forms.Label();
|
|
this.labelLessImportant = new System.Windows.Forms.Label();
|
|
this.label11 = new System.Windows.Forms.Label();
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.labelCPU = new System.Windows.Forms.Label();
|
|
this.trackbarDiskWritePriority = new System.Windows.Forms.TrackBar();
|
|
this.trackbarDiskReadPriority = new System.Windows.Forms.TrackBar();
|
|
this.trackbarNetWritePriority = new System.Windows.Forms.TrackBar();
|
|
this.trackbarNetReadPriority = new System.Windows.Forms.TrackBar();
|
|
this.trackbarMemoryPriority = new System.Windows.Forms.TrackBar();
|
|
this.trackbarCPUPriority = new System.Windows.Forms.TrackBar();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
this.decentGroupBox1.SuspendLayout();
|
|
this.panel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarDiskWritePriority)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarDiskReadPriority)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarNetWritePriority)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarNetReadPriority)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarMemoryPriority)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarCPUPriority)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// labelBlurb
|
|
//
|
|
resources.ApplyResources(this.labelBlurb, "labelBlurb");
|
|
this.labelBlurb.Name = "labelBlurb";
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
|
|
this.tableLayoutPanel1.Controls.Add(this.decentGroupBox1, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.labelBlurb, 0, 0);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
//
|
|
// decentGroupBox1
|
|
//
|
|
resources.ApplyResources(this.decentGroupBox1, "decentGroupBox1");
|
|
this.decentGroupBox1.Controls.Add(this.panel1);
|
|
this.decentGroupBox1.Controls.Add(this.label11);
|
|
this.decentGroupBox1.Controls.Add(this.label10);
|
|
this.decentGroupBox1.Controls.Add(this.label3);
|
|
this.decentGroupBox1.Controls.Add(this.label2);
|
|
this.decentGroupBox1.Controls.Add(this.label1);
|
|
this.decentGroupBox1.Controls.Add(this.labelCPU);
|
|
this.decentGroupBox1.Controls.Add(this.trackbarDiskWritePriority);
|
|
this.decentGroupBox1.Controls.Add(this.trackbarDiskReadPriority);
|
|
this.decentGroupBox1.Controls.Add(this.trackbarNetWritePriority);
|
|
this.decentGroupBox1.Controls.Add(this.trackbarNetReadPriority);
|
|
this.decentGroupBox1.Controls.Add(this.trackbarMemoryPriority);
|
|
this.decentGroupBox1.Controls.Add(this.trackbarCPUPriority);
|
|
this.decentGroupBox1.Name = "decentGroupBox1";
|
|
this.decentGroupBox1.TabStop = false;
|
|
//
|
|
// panel1
|
|
//
|
|
resources.ApplyResources(this.panel1, "panel1");
|
|
this.panel1.Controls.Add(this.labelMoreImportant);
|
|
this.panel1.Controls.Add(this.labelLessImportant);
|
|
this.panel1.Name = "panel1";
|
|
//
|
|
// labelMoreImportant
|
|
//
|
|
resources.ApplyResources(this.labelMoreImportant, "labelMoreImportant");
|
|
this.labelMoreImportant.BackColor = System.Drawing.Color.Transparent;
|
|
this.labelMoreImportant.Name = "labelMoreImportant";
|
|
//
|
|
// labelLessImportant
|
|
//
|
|
resources.ApplyResources(this.labelLessImportant, "labelLessImportant");
|
|
this.labelLessImportant.BackColor = System.Drawing.Color.Transparent;
|
|
this.labelLessImportant.Name = "labelLessImportant";
|
|
//
|
|
// label11
|
|
//
|
|
resources.ApplyResources(this.label11, "label11");
|
|
this.label11.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.label11.Name = "label11";
|
|
//
|
|
// label10
|
|
//
|
|
resources.ApplyResources(this.label10, "label10");
|
|
this.label10.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.label10.Name = "label10";
|
|
//
|
|
// label3
|
|
//
|
|
resources.ApplyResources(this.label3, "label3");
|
|
this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.label3.Name = "label3";
|
|
//
|
|
// label2
|
|
//
|
|
resources.ApplyResources(this.label2, "label2");
|
|
this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.label2.Name = "label2";
|
|
//
|
|
// label1
|
|
//
|
|
resources.ApplyResources(this.label1, "label1");
|
|
this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.label1.Name = "label1";
|
|
//
|
|
// labelCPU
|
|
//
|
|
resources.ApplyResources(this.labelCPU, "labelCPU");
|
|
this.labelCPU.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.labelCPU.Name = "labelCPU";
|
|
//
|
|
// trackbarDiskWritePriority
|
|
//
|
|
resources.ApplyResources(this.trackbarDiskWritePriority, "trackbarDiskWritePriority");
|
|
this.trackbarDiskWritePriority.BackColor = System.Drawing.SystemColors.Window;
|
|
this.trackbarDiskWritePriority.LargeChange = 1;
|
|
this.trackbarDiskWritePriority.Name = "trackbarDiskWritePriority";
|
|
this.trackbarDiskWritePriority.TickFrequency = 5;
|
|
this.trackbarDiskWritePriority.TickStyle = System.Windows.Forms.TickStyle.Both;
|
|
this.trackbarDiskWritePriority.ValueChanged += new System.EventHandler(this.trackbarValueChanged);
|
|
//
|
|
// trackbarDiskReadPriority
|
|
//
|
|
resources.ApplyResources(this.trackbarDiskReadPriority, "trackbarDiskReadPriority");
|
|
this.trackbarDiskReadPriority.BackColor = System.Drawing.SystemColors.Window;
|
|
this.trackbarDiskReadPriority.LargeChange = 1;
|
|
this.trackbarDiskReadPriority.Name = "trackbarDiskReadPriority";
|
|
this.trackbarDiskReadPriority.TickFrequency = 5;
|
|
this.trackbarDiskReadPriority.TickStyle = System.Windows.Forms.TickStyle.Both;
|
|
this.trackbarDiskReadPriority.ValueChanged += new System.EventHandler(this.trackbarValueChanged);
|
|
//
|
|
// trackbarNetWritePriority
|
|
//
|
|
resources.ApplyResources(this.trackbarNetWritePriority, "trackbarNetWritePriority");
|
|
this.trackbarNetWritePriority.BackColor = System.Drawing.SystemColors.Window;
|
|
this.trackbarNetWritePriority.LargeChange = 1;
|
|
this.trackbarNetWritePriority.Name = "trackbarNetWritePriority";
|
|
this.trackbarNetWritePriority.TickFrequency = 5;
|
|
this.trackbarNetWritePriority.TickStyle = System.Windows.Forms.TickStyle.Both;
|
|
this.trackbarNetWritePriority.ValueChanged += new System.EventHandler(this.trackbarValueChanged);
|
|
//
|
|
// trackbarNetReadPriority
|
|
//
|
|
resources.ApplyResources(this.trackbarNetReadPriority, "trackbarNetReadPriority");
|
|
this.trackbarNetReadPriority.BackColor = System.Drawing.SystemColors.Window;
|
|
this.trackbarNetReadPriority.LargeChange = 1;
|
|
this.trackbarNetReadPriority.Name = "trackbarNetReadPriority";
|
|
this.trackbarNetReadPriority.TickFrequency = 5;
|
|
this.trackbarNetReadPriority.TickStyle = System.Windows.Forms.TickStyle.Both;
|
|
this.trackbarNetReadPriority.ValueChanged += new System.EventHandler(this.trackbarValueChanged);
|
|
//
|
|
// trackbarMemoryPriority
|
|
//
|
|
resources.ApplyResources(this.trackbarMemoryPriority, "trackbarMemoryPriority");
|
|
this.trackbarMemoryPriority.BackColor = System.Drawing.SystemColors.Window;
|
|
this.trackbarMemoryPriority.LargeChange = 1;
|
|
this.trackbarMemoryPriority.Name = "trackbarMemoryPriority";
|
|
this.trackbarMemoryPriority.TickFrequency = 5;
|
|
this.trackbarMemoryPriority.TickStyle = System.Windows.Forms.TickStyle.Both;
|
|
this.trackbarMemoryPriority.ValueChanged += new System.EventHandler(this.trackbarValueChanged);
|
|
//
|
|
// trackbarCPUPriority
|
|
//
|
|
resources.ApplyResources(this.trackbarCPUPriority, "trackbarCPUPriority");
|
|
this.trackbarCPUPriority.BackColor = System.Drawing.SystemColors.Window;
|
|
this.trackbarCPUPriority.LargeChange = 1;
|
|
this.trackbarCPUPriority.Name = "trackbarCPUPriority";
|
|
this.trackbarCPUPriority.TickFrequency = 5;
|
|
this.trackbarCPUPriority.TickStyle = System.Windows.Forms.TickStyle.Both;
|
|
this.trackbarCPUPriority.ValueChanged += new System.EventHandler(this.trackbarValueChanged);
|
|
//
|
|
// WlbMetricWeightingPage
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.BackColor = System.Drawing.SystemColors.Window;
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.Name = "WlbMetricWeightingPage";
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
this.decentGroupBox1.ResumeLayout(false);
|
|
this.decentGroupBox1.PerformLayout();
|
|
this.panel1.ResumeLayout(false);
|
|
this.panel1.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarDiskWritePriority)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarDiskReadPriority)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarNetWritePriority)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarNetReadPriority)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarMemoryPriority)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.trackbarCPUPriority)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private XenAdmin.Controls.DecentGroupBox decentGroupBox1;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.Label labelMoreImportant;
|
|
private System.Windows.Forms.Label labelLessImportant;
|
|
private System.Windows.Forms.Label label11;
|
|
private System.Windows.Forms.Label label10;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label labelCPU;
|
|
private System.Windows.Forms.TrackBar trackbarDiskWritePriority;
|
|
private System.Windows.Forms.TrackBar trackbarDiskReadPriority;
|
|
private System.Windows.Forms.TrackBar trackbarNetWritePriority;
|
|
private System.Windows.Forms.TrackBar trackbarNetReadPriority;
|
|
private System.Windows.Forms.TrackBar trackbarMemoryPriority;
|
|
private System.Windows.Forms.TrackBar trackbarCPUPriority;
|
|
private System.Windows.Forms.Label labelBlurb;
|
|
}
|
|
}
|