CA-218304: Text cut off in Properties dialog, Alerts tab

Instead of adding a second table layout panel for the rubric label, I have extended the original table to include two new rows at the top - one for the label rubric, and one for the repeat interval controls (previously not in the table).

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
This commit is contained in:
Callum McIntyre 2016-08-16 08:49:56 +01:00
parent 0cb567128b
commit 4559e162b7
2 changed files with 305 additions and 958 deletions

View File

@ -32,9 +32,8 @@ namespace XenAdmin.SettingsPanels
this.AlertIntervalLabel = new System.Windows.Forms.Label(); this.AlertIntervalLabel = new System.Windows.Forms.Label();
this.AlertIntervalMinutesLabel = new System.Windows.Forms.Label(); this.AlertIntervalMinutesLabel = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label(); this.labelRubric = new System.Windows.Forms.Label();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.panel1 = new System.Windows.Forms.Panel();
this.nudAlertInterval = new XenAdmin.SettingsPanels.AlertNumericUpDown();
this.PhysicalUtilisationGroupBox = new XenAdmin.Controls.DecentGroupBox(); this.PhysicalUtilisationGroupBox = new XenAdmin.Controls.DecentGroupBox();
this.physicalUtilisationMinutesLabel = new System.Windows.Forms.Label(); this.physicalUtilisationMinutesLabel = new System.Windows.Forms.Label();
this.nudPhysicalUtilisationDurationThreshold = new XenAdmin.SettingsPanels.AlertNumericUpDown(); this.nudPhysicalUtilisationDurationThreshold = new XenAdmin.SettingsPanels.AlertNumericUpDown();
@ -91,9 +90,9 @@ namespace XenAdmin.SettingsPanels
this.CPUAlertCheckBox = new XenAdmin.SettingsPanels.AlertCheckBox(); this.CPUAlertCheckBox = new XenAdmin.SettingsPanels.AlertCheckBox();
this.CPUUsagePercentLabel = new System.Windows.Forms.Label(); this.CPUUsagePercentLabel = new System.Windows.Forms.Label();
this.CPUDurationThresholdLabel = new System.Windows.Forms.Label(); this.CPUDurationThresholdLabel = new System.Windows.Forms.Label();
this.nudAlertInterval = new XenAdmin.SettingsPanels.AlertNumericUpDown();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudAlertInterval)).BeginInit();
this.PhysicalUtilisationGroupBox.SuspendLayout(); this.PhysicalUtilisationGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudPhysicalUtilisationDurationThreshold)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudPhysicalUtilisationDurationThreshold)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudPhysicalUtilisation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudPhysicalUtilisation)).BeginInit();
@ -115,6 +114,7 @@ namespace XenAdmin.SettingsPanels
this.CpuGroupBox.SuspendLayout(); this.CpuGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudCPUUsagePercent)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCPUUsagePercent)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudCPUDurationThreshold)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCPUDurationThreshold)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudAlertInterval)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// AlertIntervalLabel // AlertIntervalLabel
@ -130,53 +130,33 @@ namespace XenAdmin.SettingsPanels
// tableLayoutPanel1 // tableLayoutPanel1
// //
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.PhysicalUtilisationGroupBox, 0, 6); this.tableLayoutPanel1.Controls.Add(this.labelRubric, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.Dom0MemoryUsageGroupBox, 0, 5); this.tableLayoutPanel1.Controls.Add(this.PhysicalUtilisationGroupBox, 0, 8);
this.tableLayoutPanel1.Controls.Add(this.MemoryGroupBox, 0, 3); this.tableLayoutPanel1.Controls.Add(this.Dom0MemoryUsageGroupBox, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.SrGroupBox, 0, 4); this.tableLayoutPanel1.Controls.Add(this.MemoryGroupBox, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.DiskGroupBox, 0, 2); this.tableLayoutPanel1.Controls.Add(this.SrGroupBox, 0, 6);
this.tableLayoutPanel1.Controls.Add(this.NetGroupBox, 0, 1); this.tableLayoutPanel1.Controls.Add(this.DiskGroupBox, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.CpuGroupBox, 0, 0); this.tableLayoutPanel1.Controls.Add(this.NetGroupBox, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.CpuGroupBox, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 1);
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Name = "tableLayoutPanel1";
// //
// label1 // labelRubric
// //
resources.ApplyResources(this.label1, "label1"); resources.ApplyResources(this.labelRubric, "labelRubric");
this.label1.Name = "label1"; this.labelRubric.Name = "labelRubric";
// //
// tableLayoutPanel2 // panel1
// //
resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2"); resources.ApplyResources(this.panel1, "panel1");
this.tableLayoutPanel2.Controls.Add(this.label1, 0, 0); this.panel1.Controls.Add(this.AlertIntervalLabel);
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.panel1.Controls.Add(this.AlertIntervalMinutesLabel);
// this.panel1.Controls.Add(this.nudAlertInterval);
// nudAlertInterval this.panel1.Name = "panel1";
//
this.nudAlertInterval.Increment = new decimal(new int[] {
5,
0,
0,
0});
resources.ApplyResources(this.nudAlertInterval, "nudAlertInterval");
this.nudAlertInterval.Maximum = new decimal(new int[] {
86400,
0,
0,
0});
this.nudAlertInterval.Minimum = new decimal(new int[] {
5,
0,
0,
0});
this.nudAlertInterval.Name = "nudAlertInterval";
this.nudAlertInterval.Value = new decimal(new int[] {
60,
0,
0,
0});
// //
// PhysicalUtilisationGroupBox // PhysicalUtilisationGroupBox
// //
resources.ApplyResources(this.PhysicalUtilisationGroupBox, "PhysicalUtilisationGroupBox");
this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationMinutesLabel); this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationMinutesLabel);
this.PhysicalUtilisationGroupBox.Controls.Add(this.nudPhysicalUtilisationDurationThreshold); this.PhysicalUtilisationGroupBox.Controls.Add(this.nudPhysicalUtilisationDurationThreshold);
this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationPercentLabel); this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationPercentLabel);
@ -184,7 +164,6 @@ namespace XenAdmin.SettingsPanels
this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationAlertCheckBox); this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationAlertCheckBox);
this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationDurationLabel); this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationDurationLabel);
this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationLabel); this.PhysicalUtilisationGroupBox.Controls.Add(this.physicalUtilisationLabel);
resources.ApplyResources(this.PhysicalUtilisationGroupBox, "PhysicalUtilisationGroupBox");
this.PhysicalUtilisationGroupBox.Name = "PhysicalUtilisationGroupBox"; this.PhysicalUtilisationGroupBox.Name = "PhysicalUtilisationGroupBox";
this.PhysicalUtilisationGroupBox.TabStop = false; this.PhysicalUtilisationGroupBox.TabStop = false;
// //
@ -257,6 +236,7 @@ namespace XenAdmin.SettingsPanels
// //
// Dom0MemoryUsageGroupBox // Dom0MemoryUsageGroupBox
// //
resources.ApplyResources(this.Dom0MemoryUsageGroupBox, "Dom0MemoryUsageGroupBox");
this.Dom0MemoryUsageGroupBox.Controls.Add(this.nudDom0MemUsage); this.Dom0MemoryUsageGroupBox.Controls.Add(this.nudDom0MemUsage);
this.Dom0MemoryUsageGroupBox.Controls.Add(this.Dom0MemoryDurationThresholdLabel); this.Dom0MemoryUsageGroupBox.Controls.Add(this.Dom0MemoryDurationThresholdLabel);
this.Dom0MemoryUsageGroupBox.Controls.Add(this.nudDom0MemoryDurationThreshold); this.Dom0MemoryUsageGroupBox.Controls.Add(this.nudDom0MemoryDurationThreshold);
@ -264,7 +244,6 @@ namespace XenAdmin.SettingsPanels
this.Dom0MemoryUsageGroupBox.Controls.Add(this.Dom0MemoryAlertCheckBox); this.Dom0MemoryUsageGroupBox.Controls.Add(this.Dom0MemoryAlertCheckBox);
this.Dom0MemoryUsageGroupBox.Controls.Add(this.dom0MemoryMinutesLabel); this.Dom0MemoryUsageGroupBox.Controls.Add(this.dom0MemoryMinutesLabel);
this.Dom0MemoryUsageGroupBox.Controls.Add(this.dom0MemoryPercentLabel); this.Dom0MemoryUsageGroupBox.Controls.Add(this.dom0MemoryPercentLabel);
resources.ApplyResources(this.Dom0MemoryUsageGroupBox, "Dom0MemoryUsageGroupBox");
this.Dom0MemoryUsageGroupBox.Name = "Dom0MemoryUsageGroupBox"; this.Dom0MemoryUsageGroupBox.Name = "Dom0MemoryUsageGroupBox";
this.Dom0MemoryUsageGroupBox.TabStop = false; this.Dom0MemoryUsageGroupBox.TabStop = false;
// //
@ -337,6 +316,7 @@ namespace XenAdmin.SettingsPanels
// //
// MemoryGroupBox // MemoryGroupBox
// //
resources.ApplyResources(this.MemoryGroupBox, "MemoryGroupBox");
this.MemoryGroupBox.Controls.Add(this.memoryMinutesLabel); this.MemoryGroupBox.Controls.Add(this.memoryMinutesLabel);
this.MemoryGroupBox.Controls.Add(this.nudMemoryDurationThreshold); this.MemoryGroupBox.Controls.Add(this.nudMemoryDurationThreshold);
this.MemoryGroupBox.Controls.Add(this.memoryUnitsLabel); this.MemoryGroupBox.Controls.Add(this.memoryUnitsLabel);
@ -344,7 +324,6 @@ namespace XenAdmin.SettingsPanels
this.MemoryGroupBox.Controls.Add(this.MemoryAlertCheckBox); this.MemoryGroupBox.Controls.Add(this.MemoryAlertCheckBox);
this.MemoryGroupBox.Controls.Add(this.memoryDurationThresholdLabel); this.MemoryGroupBox.Controls.Add(this.memoryDurationThresholdLabel);
this.MemoryGroupBox.Controls.Add(this.memoryUsageLabel); this.MemoryGroupBox.Controls.Add(this.memoryUsageLabel);
resources.ApplyResources(this.MemoryGroupBox, "MemoryGroupBox");
this.MemoryGroupBox.Name = "MemoryGroupBox"; this.MemoryGroupBox.Name = "MemoryGroupBox";
this.MemoryGroupBox.TabStop = false; this.MemoryGroupBox.TabStop = false;
// //
@ -422,6 +401,7 @@ namespace XenAdmin.SettingsPanels
// //
// SrGroupBox // SrGroupBox
// //
resources.ApplyResources(this.SrGroupBox, "SrGroupBox");
this.SrGroupBox.Controls.Add(this.srMinutesLabel); this.SrGroupBox.Controls.Add(this.srMinutesLabel);
this.SrGroupBox.Controls.Add(this.nudSrMinutes); this.SrGroupBox.Controls.Add(this.nudSrMinutes);
this.SrGroupBox.Controls.Add(this.srUnitsLabel); this.SrGroupBox.Controls.Add(this.srUnitsLabel);
@ -429,7 +409,6 @@ namespace XenAdmin.SettingsPanels
this.SrGroupBox.Controls.Add(this.SrAlertCheckBox); this.SrGroupBox.Controls.Add(this.SrAlertCheckBox);
this.SrGroupBox.Controls.Add(this.SrDurationThresholdLabel); this.SrGroupBox.Controls.Add(this.SrDurationThresholdLabel);
this.SrGroupBox.Controls.Add(this.SrUsageLabel); this.SrGroupBox.Controls.Add(this.SrUsageLabel);
resources.ApplyResources(this.SrGroupBox, "SrGroupBox");
this.SrGroupBox.Name = "SrGroupBox"; this.SrGroupBox.Name = "SrGroupBox";
this.SrGroupBox.TabStop = false; this.SrGroupBox.TabStop = false;
// //
@ -507,6 +486,7 @@ namespace XenAdmin.SettingsPanels
// //
// DiskGroupBox // DiskGroupBox
// //
resources.ApplyResources(this.DiskGroupBox, "DiskGroupBox");
this.DiskGroupBox.Controls.Add(this.DiskMinutesLabel); this.DiskGroupBox.Controls.Add(this.DiskMinutesLabel);
this.DiskGroupBox.Controls.Add(this.nudDiskDurationThreshold); this.DiskGroupBox.Controls.Add(this.nudDiskDurationThreshold);
this.DiskGroupBox.Controls.Add(this.DiskPercentLabel); this.DiskGroupBox.Controls.Add(this.DiskPercentLabel);
@ -514,7 +494,6 @@ namespace XenAdmin.SettingsPanels
this.DiskGroupBox.Controls.Add(this.DiskAlertCheckBox); this.DiskGroupBox.Controls.Add(this.DiskAlertCheckBox);
this.DiskGroupBox.Controls.Add(this.DiskDurationThresholdLabel); this.DiskGroupBox.Controls.Add(this.DiskDurationThresholdLabel);
this.DiskGroupBox.Controls.Add(this.DiskUsagePercentLabel); this.DiskGroupBox.Controls.Add(this.DiskUsagePercentLabel);
resources.ApplyResources(this.DiskGroupBox, "DiskGroupBox");
this.DiskGroupBox.Name = "DiskGroupBox"; this.DiskGroupBox.Name = "DiskGroupBox";
this.DiskGroupBox.TabStop = false; this.DiskGroupBox.TabStop = false;
// //
@ -592,6 +571,7 @@ namespace XenAdmin.SettingsPanels
// //
// NetGroupBox // NetGroupBox
// //
resources.ApplyResources(this.NetGroupBox, "NetGroupBox");
this.NetGroupBox.Controls.Add(this.NetPercentLabel); this.NetGroupBox.Controls.Add(this.NetPercentLabel);
this.NetGroupBox.Controls.Add(this.nudNetUsagePercent); this.NetGroupBox.Controls.Add(this.nudNetUsagePercent);
this.NetGroupBox.Controls.Add(this.NetMinutesLabel); this.NetGroupBox.Controls.Add(this.NetMinutesLabel);
@ -599,7 +579,6 @@ namespace XenAdmin.SettingsPanels
this.NetGroupBox.Controls.Add(this.NetAlertCheckBox); this.NetGroupBox.Controls.Add(this.NetAlertCheckBox);
this.NetGroupBox.Controls.Add(this.NetDurationThresholdLabel); this.NetGroupBox.Controls.Add(this.NetDurationThresholdLabel);
this.NetGroupBox.Controls.Add(this.NetUsagePercentLabel); this.NetGroupBox.Controls.Add(this.NetUsagePercentLabel);
resources.ApplyResources(this.NetGroupBox, "NetGroupBox");
this.NetGroupBox.Name = "NetGroupBox"; this.NetGroupBox.Name = "NetGroupBox";
this.NetGroupBox.TabStop = false; this.NetGroupBox.TabStop = false;
// //
@ -672,6 +651,7 @@ namespace XenAdmin.SettingsPanels
// //
// CpuGroupBox // CpuGroupBox
// //
resources.ApplyResources(this.CpuGroupBox, "CpuGroupBox");
this.CpuGroupBox.Controls.Add(this.cpuPercentLabel); this.CpuGroupBox.Controls.Add(this.cpuPercentLabel);
this.CpuGroupBox.Controls.Add(this.nudCPUUsagePercent); this.CpuGroupBox.Controls.Add(this.nudCPUUsagePercent);
this.CpuGroupBox.Controls.Add(this.cpuMinutesLabel); this.CpuGroupBox.Controls.Add(this.cpuMinutesLabel);
@ -679,7 +659,6 @@ namespace XenAdmin.SettingsPanels
this.CpuGroupBox.Controls.Add(this.CPUAlertCheckBox); this.CpuGroupBox.Controls.Add(this.CPUAlertCheckBox);
this.CpuGroupBox.Controls.Add(this.CPUUsagePercentLabel); this.CpuGroupBox.Controls.Add(this.CPUUsagePercentLabel);
this.CpuGroupBox.Controls.Add(this.CPUDurationThresholdLabel); this.CpuGroupBox.Controls.Add(this.CPUDurationThresholdLabel);
resources.ApplyResources(this.CpuGroupBox, "CpuGroupBox");
this.CpuGroupBox.Name = "CpuGroupBox"; this.CpuGroupBox.Name = "CpuGroupBox";
this.CpuGroupBox.TabStop = false; this.CpuGroupBox.TabStop = false;
// //
@ -750,20 +729,41 @@ namespace XenAdmin.SettingsPanels
resources.ApplyResources(this.CPUDurationThresholdLabel, "CPUDurationThresholdLabel"); resources.ApplyResources(this.CPUDurationThresholdLabel, "CPUDurationThresholdLabel");
this.CPUDurationThresholdLabel.Name = "CPUDurationThresholdLabel"; this.CPUDurationThresholdLabel.Name = "CPUDurationThresholdLabel";
// //
// nudAlertInterval
//
this.nudAlertInterval.Increment = new decimal(new int[] {
5,
0,
0,
0});
resources.ApplyResources(this.nudAlertInterval, "nudAlertInterval");
this.nudAlertInterval.Maximum = new decimal(new int[] {
86400,
0,
0,
0});
this.nudAlertInterval.Minimum = new decimal(new int[] {
5,
0,
0,
0});
this.nudAlertInterval.Name = "nudAlertInterval";
this.nudAlertInterval.Value = new decimal(new int[] {
60,
0,
0,
0});
//
// PerfmonAlertEditPage // PerfmonAlertEditPage
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.Controls.Add(this.tableLayoutPanel2);
this.Controls.Add(this.AlertIntervalLabel);
this.Controls.Add(this.nudAlertInterval);
this.Controls.Add(this.AlertIntervalMinutesLabel);
this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tableLayoutPanel1);
this.Name = "PerfmonAlertEditPage"; this.Name = "PerfmonAlertEditPage";
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout();
this.tableLayoutPanel2.PerformLayout(); this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.nudAlertInterval)).EndInit(); this.panel1.PerformLayout();
this.PhysicalUtilisationGroupBox.ResumeLayout(false); this.PhysicalUtilisationGroupBox.ResumeLayout(false);
this.PhysicalUtilisationGroupBox.PerformLayout(); this.PhysicalUtilisationGroupBox.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudPhysicalUtilisationDurationThreshold)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudPhysicalUtilisationDurationThreshold)).EndInit();
@ -792,6 +792,7 @@ namespace XenAdmin.SettingsPanels
this.CpuGroupBox.PerformLayout(); this.CpuGroupBox.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudCPUUsagePercent)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCPUUsagePercent)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudCPUDurationThreshold)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCPUDurationThreshold)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudAlertInterval)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -843,7 +844,7 @@ namespace XenAdmin.SettingsPanels
private AlertCheckBox SrAlertCheckBox; private AlertCheckBox SrAlertCheckBox;
private System.Windows.Forms.Label SrDurationThresholdLabel; private System.Windows.Forms.Label SrDurationThresholdLabel;
private System.Windows.Forms.Label SrUsageLabel; private System.Windows.Forms.Label SrUsageLabel;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label labelRubric;
private Controls.DecentGroupBox Dom0MemoryUsageGroupBox; private Controls.DecentGroupBox Dom0MemoryUsageGroupBox;
private AlertNumericUpDown nudDom0MemUsage; private AlertNumericUpDown nudDom0MemUsage;
private System.Windows.Forms.Label Dom0MemoryDurationThresholdLabel; private System.Windows.Forms.Label Dom0MemoryDurationThresholdLabel;
@ -860,6 +861,6 @@ namespace XenAdmin.SettingsPanels
private AlertCheckBox physicalUtilisationAlertCheckBox; private AlertCheckBox physicalUtilisationAlertCheckBox;
private System.Windows.Forms.Label physicalUtilisationDurationLabel; private System.Windows.Forms.Label physicalUtilisationDurationLabel;
private System.Windows.Forms.Label physicalUtilisationLabel; private System.Windows.Forms.Label physicalUtilisationLabel;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; private System.Windows.Forms.Panel panel1;
} }
} }

File diff suppressed because it is too large Load Diff