Improves design of the Updates Tab.

This commit is contained in:
Carmen Agimof 2015-07-30 18:00:06 +01:00
parent b7a010b5f0
commit b2c4133e9e
3 changed files with 96 additions and 88 deletions

View File

@ -42,6 +42,16 @@
this.informationLabelIcon = new System.Windows.Forms.PictureBox();
this.informationLabel = new System.Windows.Forms.LinkLabel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.AutoCheckForUpdatesDisabledLabel = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.checkForUpdatesNowButton2 = new System.Windows.Forms.LinkLabel();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.checkForUpdatesNowButton = new System.Windows.Forms.Button();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.labelProgress = new System.Windows.Forms.Label();
this.pictureBoxProgress = new System.Windows.Forms.PictureBox();
this.toolStrip1 = new XenAdmin.Controls.ToolStripEx();
this.toolStripDropDownButtonServerFilter = new XenAdmin.Controls.FilterLocationToolStripDropDownButton();
this.toolStripDropDownButtonDateFilter = new XenAdmin.Controls.FilterDatesToolStripDropDownButton();
@ -54,16 +64,6 @@
this.dismissAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dismissSelectedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripButtonRestoreDismissed = new System.Windows.Forms.ToolStripButton();
this.AutoCheckForUpdatesDisabledLabel = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.checkForUpdatesNowButton2 = new System.Windows.Forms.LinkLabel();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.checkForUpdatesNowButton = new System.Windows.Forms.Button();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.labelProgress = new System.Windows.Forms.Label();
this.pictureBoxProgress = new System.Windows.Forms.PictureBox();
this.dataGridViewUpdates = new XenAdmin.Controls.DataGridViewEx.DataGridViewEx();
this.ColumnExpand = new System.Windows.Forms.DataGridViewImageColumn();
this.ColumnMessage = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -73,11 +73,11 @@
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.informationLabelIcon)).BeginInit();
this.tableLayoutPanel2.SuspendLayout();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.tableLayoutPanel3.SuspendLayout();
this.tableLayoutPanel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxProgress)).BeginInit();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewUpdates)).BeginInit();
this.SuspendLayout();
//
@ -112,6 +112,71 @@
this.tableLayoutPanel2.Controls.Add(this.checkForUpdatesNowButton2, 2, 1);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
//
// AutoCheckForUpdatesDisabledLabel
//
resources.ApplyResources(this.AutoCheckForUpdatesDisabledLabel, "AutoCheckForUpdatesDisabledLabel");
this.AutoCheckForUpdatesDisabledLabel.Name = "AutoCheckForUpdatesDisabledLabel";
//
// pictureBox1
//
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
//
// checkForUpdatesNowButton2
//
resources.ApplyResources(this.checkForUpdatesNowButton2, "checkForUpdatesNowButton2");
this.checkForUpdatesNowButton2.LinkColor = System.Drawing.Color.Black;
this.checkForUpdatesNowButton2.Name = "checkForUpdatesNowButton2";
this.checkForUpdatesNowButton2.TabStop = true;
this.checkForUpdatesNowButton2.Click += new System.EventHandler(this.checkForUpdatesNowButton2_Click);
//
// button2
//
resources.ApplyResources(this.button2, "button2");
this.button2.Name = "button2";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
resources.ApplyResources(this.button1, "button1");
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = true;
//
// tableLayoutPanel3
//
resources.ApplyResources(this.tableLayoutPanel3, "tableLayoutPanel3");
this.tableLayoutPanel3.BackColor = System.Drawing.Color.Transparent;
this.tableLayoutPanel3.Controls.Add(this.checkForUpdatesNowButton, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.tableLayoutPanel4, 0, 0);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
//
// checkForUpdatesNowButton
//
resources.ApplyResources(this.checkForUpdatesNowButton, "checkForUpdatesNowButton");
this.checkForUpdatesNowButton.Name = "checkForUpdatesNowButton";
this.checkForUpdatesNowButton.UseVisualStyleBackColor = true;
this.checkForUpdatesNowButton.Click += new System.EventHandler(this.checkForUpdatesNowButton_Click);
//
// tableLayoutPanel4
//
resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4");
this.tableLayoutPanel4.Controls.Add(this.labelProgress, 1, 0);
this.tableLayoutPanel4.Controls.Add(this.pictureBoxProgress, 0, 0);
this.tableLayoutPanel4.Cursor = System.Windows.Forms.Cursors.Arrow;
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
//
// labelProgress
//
resources.ApplyResources(this.labelProgress, "labelProgress");
this.labelProgress.Name = "labelProgress";
//
// pictureBoxProgress
//
resources.ApplyResources(this.pictureBoxProgress, "pictureBoxProgress");
this.pictureBoxProgress.Name = "pictureBoxProgress";
this.pictureBoxProgress.TabStop = false;
//
// toolStrip1
//
resources.ApplyResources(this.toolStrip1, "toolStrip1");
@ -208,70 +273,6 @@
this.toolStripButtonRestoreDismissed.Name = "toolStripButtonRestoreDismissed";
this.toolStripButtonRestoreDismissed.Click += new System.EventHandler(this.toolStripButtonRestoreDismissed_Click);
//
// AutoCheckForUpdatesDisabledLabel
//
resources.ApplyResources(this.AutoCheckForUpdatesDisabledLabel, "AutoCheckForUpdatesDisabledLabel");
this.AutoCheckForUpdatesDisabledLabel.Name = "AutoCheckForUpdatesDisabledLabel";
//
// pictureBox1
//
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
//
// checkForUpdatesNowButton2
//
resources.ApplyResources(this.checkForUpdatesNowButton2, "checkForUpdatesNowButton2");
this.checkForUpdatesNowButton2.LinkColor = System.Drawing.Color.Black;
this.checkForUpdatesNowButton2.Name = "checkForUpdatesNowButton2";
this.checkForUpdatesNowButton2.TabStop = true;
this.checkForUpdatesNowButton2.Click += new System.EventHandler(this.checkForUpdatesNowButton2_Click);
//
// button2
//
resources.ApplyResources(this.button2, "button2");
this.button2.Name = "button2";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
resources.ApplyResources(this.button1, "button1");
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = true;
//
// tableLayoutPanel3
//
resources.ApplyResources(this.tableLayoutPanel3, "tableLayoutPanel3");
this.tableLayoutPanel3.Controls.Add(this.checkForUpdatesNowButton, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.tableLayoutPanel4, 0, 0);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
//
// checkForUpdatesNowButton
//
resources.ApplyResources(this.checkForUpdatesNowButton, "checkForUpdatesNowButton");
this.checkForUpdatesNowButton.Name = "checkForUpdatesNowButton";
this.checkForUpdatesNowButton.UseVisualStyleBackColor = true;
this.checkForUpdatesNowButton.Click += new System.EventHandler(this.checkForUpdatesNowButton_Click);
//
// tableLayoutPanel4
//
resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4");
this.tableLayoutPanel4.Controls.Add(this.labelProgress, 1, 0);
this.tableLayoutPanel4.Controls.Add(this.pictureBoxProgress, 0, 0);
this.tableLayoutPanel4.Cursor = System.Windows.Forms.Cursors.Arrow;
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
//
// labelProgress
//
resources.ApplyResources(this.labelProgress, "labelProgress");
this.labelProgress.Name = "labelProgress";
//
// pictureBoxProgress
//
resources.ApplyResources(this.pictureBoxProgress, "pictureBoxProgress");
this.pictureBoxProgress.Name = "pictureBoxProgress";
this.pictureBoxProgress.TabStop = false;
//
// dataGridViewUpdates
//
resources.ApplyResources(this.dataGridViewUpdates, "dataGridViewUpdates");
@ -360,14 +361,14 @@
((System.ComponentModel.ISupportInitialize)(this.informationLabelIcon)).EndInit();
this.tableLayoutPanel2.ResumeLayout(false);
this.tableLayoutPanel2.PerformLayout();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.tableLayoutPanel3.ResumeLayout(false);
this.tableLayoutPanel3.PerformLayout();
this.tableLayoutPanel4.ResumeLayout(false);
this.tableLayoutPanel4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxProgress)).EndInit();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewUpdates)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

View File

@ -210,6 +210,7 @@ namespace XenAdmin.TabPages
{
StoreSelectedUpdates();
dataGridViewUpdates.Rows.Clear();
dataGridViewUpdates.Refresh();
}
var updates = new List<Alert>(Updates.UpdateAlerts);

View File

@ -125,6 +125,9 @@
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="informationLabelIcon.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="informationLabelIcon.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
@ -133,7 +136,7 @@
<value>NoControl</value>
</data>
<data name="informationLabelIcon.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
<value>3, 10</value>
</data>
<data name="informationLabelIcon.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 23</value>
@ -166,7 +169,7 @@
<value>NoControl</value>
</data>
<data name="informationLabel.Location" type="System.Drawing.Point, System.Drawing">
<value>28, 11</value>
<value>28, 10</value>
</data>
<data name="informationLabel.Size" type="System.Drawing.Size, System.Drawing">
<value>98, 15</value>
@ -193,13 +196,13 @@
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 429</value>
<value>13, 430</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>772, 37</value>
<value>772, 36</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
@ -217,7 +220,7 @@
<value>2</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="informationLabelIcon" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="informationLabel" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="Percent,100,Absolute,37" /&gt;&lt;/TableLayoutSettings&gt;</value>
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="informationLabelIcon" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="informationLabel" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="Percent,100,Absolute,36" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="tableLayoutPanel2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -406,7 +409,7 @@
<value>NoControl</value>
</data>
<data name="AutoCheckForUpdatesDisabledLabel.Location" type="System.Drawing.Point, System.Drawing">
<value>28, 33</value>
<value>28, 32</value>
</data>
<data name="AutoCheckForUpdatesDisabledLabel.Size" type="System.Drawing.Size, System.Drawing">
<value>395, 15</value>
@ -445,10 +448,13 @@
<value>3, 30</value>
</data>
<data name="pictureBox1.MaximumSize" type="System.Drawing.Size, System.Drawing">
<value>19, 21</value>
<value>19, 19</value>
</data>
<data name="pictureBox1.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>19, 19</value>
</data>
<data name="pictureBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 21</value>
<value>19, 19</value>
</data>
<data name="pictureBox1.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>StretchImage</value>
@ -481,7 +487,7 @@
<value>NoControl</value>
</data>
<data name="checkForUpdatesNowButton2.Location" type="System.Drawing.Point, System.Drawing">
<value>429, 33</value>
<value>429, 32</value>
</data>
<data name="checkForUpdatesNowButton2.Size" type="System.Drawing.Size, System.Drawing">
<value>132, 15</value>
@ -529,7 +535,7 @@
<value>3</value>
</data>
<data name="tableLayoutPanel2.Size" type="System.Drawing.Size, System.Drawing">
<value>776, 54</value>
<value>776, 52</value>
</data>
<data name="tableLayoutPanel2.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
@ -861,7 +867,7 @@
<value>0, 12, 0, 12</value>
</data>
<data name="dataGridViewUpdates.Size" type="System.Drawing.Size, System.Drawing">
<value>773, 352</value>
<value>773, 357</value>
</data>
<data name="dataGridViewUpdates.TabIndex" type="System.Int32, mscorlib">
<value>2</value>