mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 12:30:50 +01:00
CP-40157: Move Description column to second place
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
parent
b8e1376d52
commit
0a14ece670
19
XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs
generated
19
XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs
generated
@ -53,9 +53,9 @@
|
||||
this.buttonEnable = new System.Windows.Forms.Button();
|
||||
this.ColumnDisplayOnGraph = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.ColumnName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnType = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnEnabled = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnColour = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
@ -106,9 +106,9 @@
|
||||
this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.ColumnDisplayOnGraph,
|
||||
this.ColumnName,
|
||||
this.Description,
|
||||
this.ColumnType,
|
||||
this.ColumnEnabled,
|
||||
this.Description,
|
||||
this.ColumnColour});
|
||||
resources.ApplyResources(this.dataGridView, "dataGridView");
|
||||
this.dataGridView.MultiSelect = false;
|
||||
@ -255,6 +255,13 @@
|
||||
this.ColumnName.Name = "ColumnName";
|
||||
this.ColumnName.ReadOnly = true;
|
||||
//
|
||||
// Description
|
||||
//
|
||||
this.Description.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
resources.ApplyResources(this.Description, "Description");
|
||||
this.Description.Name = "Description";
|
||||
this.Description.ReadOnly = true;
|
||||
//
|
||||
// ColumnType
|
||||
//
|
||||
this.ColumnType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
||||
@ -268,12 +275,6 @@
|
||||
this.ColumnEnabled.Name = "ColumnEnabled";
|
||||
this.ColumnEnabled.ReadOnly = true;
|
||||
//
|
||||
// Description
|
||||
//
|
||||
resources.ApplyResources(this.Description, "Description");
|
||||
this.Description.Name = "Description";
|
||||
this.Description.ReadOnly = true;
|
||||
//
|
||||
// ColumnColour
|
||||
//
|
||||
this.ColumnColour.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
@ -331,9 +332,9 @@
|
||||
private System.Windows.Forms.Button buttonClearAll;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnDisplayOnGraph;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Description;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnType;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnEnabled;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Description;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnColour;
|
||||
}
|
||||
}
|
||||
|
@ -399,9 +399,9 @@ namespace XenAdmin.Dialogs
|
||||
{
|
||||
private readonly DataGridViewCheckBoxCell _checkBoxCell = new DataGridViewCheckBoxCell();
|
||||
private readonly DataGridViewTextBoxCell _dataSourceCell = new DataGridViewTextBoxCell();
|
||||
private readonly DataGridViewTextBoxCell _nameDescription = new DataGridViewTextBoxCell();
|
||||
private readonly DataGridViewTextBoxCell _typeCell = new DataGridViewTextBoxCell();
|
||||
private readonly DataGridViewTextBoxCell _enabledCell = new DataGridViewTextBoxCell();
|
||||
private readonly DataGridViewTextBoxCell _nameDescription = new DataGridViewTextBoxCell();
|
||||
private readonly DataGridViewTextBoxCell _colorCell = new DataGridViewTextBoxCell();
|
||||
|
||||
public DataSourceGridViewRow(DataSourceItem dataSourceItem, bool displayOnGraph)
|
||||
@ -410,12 +410,12 @@ namespace XenAdmin.Dialogs
|
||||
|
||||
_checkBoxCell.Value = displayOnGraph;
|
||||
_dataSourceCell.Value = Dsi.ToString();
|
||||
_nameDescription.Value = Dsi.DataSource.name_description;
|
||||
_typeCell.Value = Dsi.Category.ToStringI18N();
|
||||
_enabledCell.Value = Dsi.Enabled.ToYesNoStringI18n();
|
||||
_nameDescription.Value = Dsi.DataSource.name_description;
|
||||
_colorCell.Value = Dsi.Color;
|
||||
|
||||
Cells.AddRange(_checkBoxCell, _dataSourceCell, _typeCell, _enabledCell, _nameDescription, _colorCell);
|
||||
Cells.AddRange(_checkBoxCell, _dataSourceCell, _nameDescription, _typeCell, _enabledCell, _colorCell);
|
||||
|
||||
if (Dsi.Hidden)
|
||||
DefaultCellStyle = new DataGridViewCellStyle
|
||||
|
@ -282,6 +282,15 @@
|
||||
<data name="ColumnName.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>100</value>
|
||||
</data>
|
||||
<metadata name="Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="Description.HeaderText" xml:space="preserve">
|
||||
<value>Description</value>
|
||||
</data>
|
||||
<data name="Description.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>100</value>
|
||||
</data>
|
||||
<metadata name="ColumnType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@ -303,15 +312,6 @@
|
||||
<data name="ColumnEnabled.Width" type="System.Int32, mscorlib">
|
||||
<value>74</value>
|
||||
</data>
|
||||
<metadata name="Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="Description.HeaderText" xml:space="preserve">
|
||||
<value>Description</value>
|
||||
</data>
|
||||
<data name="Description.Width" type="System.Int32, mscorlib">
|
||||
<value>92</value>
|
||||
</data>
|
||||
<metadata name="ColumnColour.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@ -798,6 +798,12 @@
|
||||
<data name=">>ColumnName.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>Description.Name" xml:space="preserve">
|
||||
<value>Description</value>
|
||||
</data>
|
||||
<data name=">>Description.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnType.Name" xml:space="preserve">
|
||||
<value>ColumnType</value>
|
||||
</data>
|
||||
@ -810,12 +816,6 @@
|
||||
<data name=">>ColumnEnabled.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>Description.Name" xml:space="preserve">
|
||||
<value>Description</value>
|
||||
</data>
|
||||
<data name=">>Description.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnColour.Name" xml:space="preserve">
|
||||
<value>ColumnColour</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user