mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Merge pull request #513 from MihaelaStoica/CP-12777
CP-12777: FCoE status in NICs tab
This commit is contained in:
commit
ab63304695
26
XenAdmin/TabPages/NICPage.Designer.cs
generated
26
XenAdmin/TabPages/NICPage.Designer.cs
generated
@ -46,6 +46,7 @@ namespace XenAdmin.TabPages
|
||||
this.TitleLabel = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.ColumnNIC = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnMAC = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnLinkStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@ -54,7 +55,7 @@ namespace XenAdmin.TabPages
|
||||
this.ColumnVendorName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnDeviceName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnBusPath = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.ColumnFCoECapable = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.pageContainerPanel.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
@ -137,7 +138,6 @@ namespace XenAdmin.TabPages
|
||||
resources.ApplyResources(this.panel1, "panel1");
|
||||
this.panel1.Controls.Add(this.dataGridView1);
|
||||
this.panel1.Controls.Add(this.flowLayoutPanel1);
|
||||
this.panel1.MaximumSize = new System.Drawing.Size(900, 400);
|
||||
this.panel1.Name = "panel1";
|
||||
//
|
||||
// dataGridView1
|
||||
@ -157,15 +157,21 @@ namespace XenAdmin.TabPages
|
||||
this.ColumnDuplex,
|
||||
this.ColumnVendorName,
|
||||
this.ColumnDeviceName,
|
||||
this.ColumnBusPath});
|
||||
this.ColumnBusPath,
|
||||
this.ColumnFCoECapable});
|
||||
resources.ApplyResources(this.dataGridView1, "dataGridView1");
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dataGridView1_MouseClick);
|
||||
this.dataGridView1.SelectionChanged += new System.EventHandler(this.datagridview_SelectedIndexChanged);
|
||||
this.dataGridView1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dataGridView1_MouseClick);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
|
||||
//
|
||||
// ColumnNIC
|
||||
//
|
||||
@ -205,21 +211,23 @@ namespace XenAdmin.TabPages
|
||||
//
|
||||
// ColumnDeviceName
|
||||
//
|
||||
this.ColumnDeviceName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
resources.ApplyResources(this.ColumnDeviceName, "ColumnDeviceName");
|
||||
this.ColumnDeviceName.Name = "ColumnDeviceName";
|
||||
this.ColumnDeviceName.ReadOnly = true;
|
||||
this.ColumnDeviceName.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||
//
|
||||
// ColumnBusPath
|
||||
//
|
||||
this.ColumnBusPath.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
resources.ApplyResources(this.ColumnBusPath, "ColumnBusPath");
|
||||
this.ColumnBusPath.Name = "ColumnBusPath";
|
||||
this.ColumnBusPath.ReadOnly = true;
|
||||
//
|
||||
// contextMenuStrip1
|
||||
// ColumnFCoECapable
|
||||
//
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
|
||||
resources.ApplyResources(this.ColumnFCoECapable, "ColumnFCoECapable");
|
||||
this.ColumnFCoECapable.Name = "ColumnFCoECapable";
|
||||
this.ColumnFCoECapable.ReadOnly = true;
|
||||
//
|
||||
// NICPage
|
||||
//
|
||||
@ -235,6 +243,7 @@ namespace XenAdmin.TabPages
|
||||
this.panel1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
@ -262,5 +271,6 @@ namespace XenAdmin.TabPages
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnVendorName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnDeviceName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnBusPath;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnFCoECapable;
|
||||
}
|
||||
}
|
||||
|
@ -166,13 +166,16 @@ namespace XenAdmin.TabPages
|
||||
p.Selected = true;
|
||||
}
|
||||
|
||||
//CA-47050: the ColumnBusPath should be autosized to Fill, but should not become smaller than a minimum
|
||||
//width, which is chosen to be the column's contents (including header) width. To find what this is
|
||||
//set temporarily the column's autosize mode to AllCells.
|
||||
ColumnBusPath.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
|
||||
int storedWidth = ColumnBusPath.Width;
|
||||
ColumnBusPath.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
ColumnBusPath.MinimumWidth = storedWidth;
|
||||
//show the FCoE column for Dundee or higher hosts only
|
||||
ColumnFCoECapable.Visible = Helpers.DundeeOrGreater(host);
|
||||
|
||||
//CA-47050: the Device column should be autosized to Fill, but should not become smaller than a minimum
|
||||
//width, which here is chosen to be the column header width. To find what this width is
|
||||
//set temporarily the column's autosize mode to ColumnHeader.
|
||||
ColumnDeviceName.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader;
|
||||
int storedWidth = ColumnDeviceName.Width;
|
||||
ColumnDeviceName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
ColumnDeviceName.MinimumWidth = storedWidth;
|
||||
|
||||
if (dataGridView1.SortedColumn != null)
|
||||
dataGridView1.Sort(dataGridView1.SortedColumn, dataGridView1.SortOrder == SortOrder.Ascending ? ListSortDirection.Ascending : ListSortDirection.Descending);
|
||||
@ -201,7 +204,7 @@ namespace XenAdmin.TabPages
|
||||
device = PIFMetrics.device_name;
|
||||
busPath = PIFMetrics.pci_bus_path;
|
||||
}
|
||||
for (int i = 0; i < 8; i++)
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
Cells.Add(new DataGridViewTextBoxCell());
|
||||
updateCell(i);
|
||||
@ -237,6 +240,9 @@ namespace XenAdmin.TabPages
|
||||
case 7:
|
||||
Cells[7].Value = busPath;
|
||||
break;
|
||||
case 8:
|
||||
Cells[8].Value = pif.FCoECapable ? Messages.YES : Messages.NO;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -112,29 +112,29 @@
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="panel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Bottom, Left, Right</value>
|
||||
</data>
|
||||
<metadata name="ColumnNIC.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnNIC.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnNIC.HeaderText" xml:space="preserve">
|
||||
<value>NIC</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ColumnNIC.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>70</value>
|
||||
</data>
|
||||
<data name="ColumnNIC.Width" type="System.Int32, mscorlib">
|
||||
<value>70</value>
|
||||
</data>
|
||||
<metadata name="ColumnMAC.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnMAC.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnMAC.HeaderText" xml:space="preserve">
|
||||
@ -143,16 +143,19 @@
|
||||
<data name="ColumnMAC.Width" type="System.Int32, mscorlib">
|
||||
<value>56</value>
|
||||
</data>
|
||||
<metadata name="ColumnLinkStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnLinkStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnLinkStatus.HeaderText" xml:space="preserve">
|
||||
<value>Link Status</value>
|
||||
</data>
|
||||
<data name="ColumnLinkStatus.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>88</value>
|
||||
</data>
|
||||
<data name="ColumnLinkStatus.Width" type="System.Int32, mscorlib">
|
||||
<value>88</value>
|
||||
</data>
|
||||
<metadata name="ColumnSpeed.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnSpeed.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnSpeed.HeaderText" xml:space="preserve">
|
||||
@ -161,7 +164,7 @@
|
||||
<data name="ColumnSpeed.Width" type="System.Int32, mscorlib">
|
||||
<value>64</value>
|
||||
</data>
|
||||
<metadata name="ColumnDuplex.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnDuplex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnDuplex.HeaderText" xml:space="preserve">
|
||||
@ -170,7 +173,7 @@
|
||||
<data name="ColumnDuplex.Width" type="System.Int32, mscorlib">
|
||||
<value>68</value>
|
||||
</data>
|
||||
<metadata name="ColumnVendorName.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnVendorName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnVendorName.HeaderText" xml:space="preserve">
|
||||
@ -179,16 +182,16 @@
|
||||
<data name="ColumnVendorName.Width" type="System.Int32, mscorlib">
|
||||
<value>70</value>
|
||||
</data>
|
||||
<metadata name="ColumnDeviceName.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnDeviceName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnDeviceName.HeaderText" xml:space="preserve">
|
||||
<value>Device</value>
|
||||
</data>
|
||||
<data name="ColumnDeviceName.Width" type="System.Int32, mscorlib">
|
||||
<data name="ColumnDeviceName.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>65</value>
|
||||
</data>
|
||||
<metadata name="ColumnBusPath.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="ColumnBusPath.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnBusPath.HeaderText" xml:space="preserve">
|
||||
@ -197,15 +200,27 @@
|
||||
<data name="ColumnBusPath.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>100</value>
|
||||
</data>
|
||||
<metadata name="ColumnFCoECapable.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="ColumnFCoECapable.HeaderText" xml:space="preserve">
|
||||
<value>FCoE Capable</value>
|
||||
</data>
|
||||
<data name="ColumnFCoECapable.MinimumWidth" type="System.Int32, mscorlib">
|
||||
<value>105</value>
|
||||
</data>
|
||||
<data name="ColumnFCoECapable.Width" type="System.Int32, mscorlib">
|
||||
<value>105</value>
|
||||
</data>
|
||||
<data name="dataGridView1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="dataGridView1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 0</value>
|
||||
</data>
|
||||
<data name="dataGridView1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>897, 316</value>
|
||||
<value>897, 275</value>
|
||||
</data>
|
||||
<data name="dataGridView1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>5</value>
|
||||
@ -214,7 +229,7 @@
|
||||
<value>dataGridView1</value>
|
||||
</data>
|
||||
<data name=">>dataGridView1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridView, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>dataGridView1.Parent" xml:space="preserve">
|
||||
<value>panel1</value>
|
||||
@ -247,7 +262,7 @@
|
||||
<value>CreateBondButton</value>
|
||||
</data>
|
||||
<data name=">>CreateBondButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>CreateBondButton.Parent" xml:space="preserve">
|
||||
<value>flowLayoutPanel1</value>
|
||||
@ -280,7 +295,7 @@
|
||||
<value>DeleteBondButton</value>
|
||||
</data>
|
||||
<data name=">>DeleteBondButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>DeleteBondButton.Parent" xml:space="preserve">
|
||||
<value>flowLayoutPanel1</value>
|
||||
@ -307,7 +322,7 @@
|
||||
<value>buttonRescan</value>
|
||||
</data>
|
||||
<data name=">>buttonRescan.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>buttonRescan.Parent" xml:space="preserve">
|
||||
<value>flowLayoutPanel1</value>
|
||||
@ -319,7 +334,7 @@
|
||||
<value>Bottom</value>
|
||||
</data>
|
||||
<data name="flowLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 316</value>
|
||||
<value>0, 275</value>
|
||||
</data>
|
||||
<data name="flowLayoutPanel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>0, 0, 0, 0</value>
|
||||
@ -337,7 +352,7 @@
|
||||
<value>flowLayoutPanel1</value>
|
||||
</data>
|
||||
<data name=">>flowLayoutPanel1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>flowLayoutPanel1.Parent" xml:space="preserve">
|
||||
<value>panel1</value>
|
||||
@ -348,8 +363,11 @@
|
||||
<data name="panel1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>10, 33</value>
|
||||
</data>
|
||||
<data name="panel1.MaximumSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>900, 400</value>
|
||||
</data>
|
||||
<data name="panel1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>897, 342</value>
|
||||
<value>897, 301</value>
|
||||
</data>
|
||||
<data name="panel1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>6</value>
|
||||
@ -358,7 +376,7 @@
|
||||
<value>panel1</value>
|
||||
</data>
|
||||
<data name=">>panel1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>panel1.Parent" xml:space="preserve">
|
||||
<value>pageContainerPanel</value>
|
||||
@ -391,7 +409,7 @@
|
||||
<value>label1</value>
|
||||
</data>
|
||||
<data name=">>label1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>label1.Parent" xml:space="preserve">
|
||||
<value>pageContainerPanel</value>
|
||||
@ -399,14 +417,17 @@
|
||||
<data name=">>label1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="pageContainerPanel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 78</value>
|
||||
</data>
|
||||
<data name="pageContainerPanel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>920, 397</value>
|
||||
<value>920, 356</value>
|
||||
</data>
|
||||
<data name=">>pageContainerPanel.Name" xml:space="preserve">
|
||||
<value>pageContainerPanel</value>
|
||||
</data>
|
||||
<data name=">>pageContainerPanel.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pageContainerPanel.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
@ -433,7 +454,7 @@
|
||||
<value>label6</value>
|
||||
</data>
|
||||
<data name=">>label6.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="label10.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
@ -451,7 +472,7 @@
|
||||
<value>label10</value>
|
||||
</data>
|
||||
<data name=">>label10.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="label9.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
@ -469,7 +490,7 @@
|
||||
<value>label9</value>
|
||||
</data>
|
||||
<data name=">>label9.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="label8.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
@ -487,7 +508,7 @@
|
||||
<value>label8</value>
|
||||
</data>
|
||||
<data name=">>label8.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="label7.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
@ -505,7 +526,7 @@
|
||||
<value>label7</value>
|
||||
</data>
|
||||
<data name=">>label7.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="TitleLabel.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
@ -538,9 +559,9 @@
|
||||
<value>TitleLabel</value>
|
||||
</data>
|
||||
<data name=">>TitleLabel.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="contextMenuStrip1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
@ -550,9 +571,9 @@
|
||||
<value>contextMenuStrip1</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
@ -571,49 +592,55 @@
|
||||
<value>ColumnNIC</value>
|
||||
</data>
|
||||
<data name=">>ColumnNIC.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnMAC.Name" xml:space="preserve">
|
||||
<value>ColumnMAC</value>
|
||||
</data>
|
||||
<data name=">>ColumnMAC.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnLinkStatus.Name" xml:space="preserve">
|
||||
<value>ColumnLinkStatus</value>
|
||||
</data>
|
||||
<data name=">>ColumnLinkStatus.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnSpeed.Name" xml:space="preserve">
|
||||
<value>ColumnSpeed</value>
|
||||
</data>
|
||||
<data name=">>ColumnSpeed.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnDuplex.Name" xml:space="preserve">
|
||||
<value>ColumnDuplex</value>
|
||||
</data>
|
||||
<data name=">>ColumnDuplex.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnVendorName.Name" xml:space="preserve">
|
||||
<value>ColumnVendorName</value>
|
||||
</data>
|
||||
<data name=">>ColumnVendorName.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnDeviceName.Name" xml:space="preserve">
|
||||
<value>ColumnDeviceName</value>
|
||||
</data>
|
||||
<data name=">>ColumnDeviceName.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnBusPath.Name" xml:space="preserve">
|
||||
<value>ColumnBusPath</value>
|
||||
</data>
|
||||
<data name=">>ColumnBusPath.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>ColumnFCoECapable.Name" xml:space="preserve">
|
||||
<value>ColumnFCoECapable</value>
|
||||
</data>
|
||||
<data name=">>ColumnFCoECapable.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=">>$this.Name" xml:space="preserve">
|
||||
<value>NICPage</value>
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using XenAdmin;
|
||||
using XenAdmin.Core;
|
||||
|
||||
@ -453,5 +454,10 @@ namespace XenAPI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool FCoECapable
|
||||
{
|
||||
get { return capabilities.Any(capability => capability == "fcoe"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user