mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 15:29:26 +01:00
Merge pull request #1084 from GaborApatiNagy/master_CA-213728
CA-213728: Going to Home Server tab can change home server
This commit is contained in:
commit
54849d4f5e
1
XenAdmin/Controls/AffinityPicker.Designer.cs
generated
1
XenAdmin/Controls/AffinityPicker.Designer.cs
generated
@ -109,6 +109,7 @@ namespace XenAdmin.Controls
|
|||||||
this.ReasonColumn});
|
this.ReasonColumn});
|
||||||
resources.ApplyResources(this.ServersGridView, "ServersGridView");
|
resources.ApplyResources(this.ServersGridView, "ServersGridView");
|
||||||
this.ServersGridView.Name = "ServersGridView";
|
this.ServersGridView.Name = "ServersGridView";
|
||||||
|
this.ServersGridView.VisibleChanged += new System.EventHandler(this.ServersGridView_VisibleChanged);
|
||||||
//
|
//
|
||||||
// ImageColumn
|
// ImageColumn
|
||||||
//
|
//
|
||||||
|
@ -216,6 +216,17 @@ namespace XenAdmin.Controls
|
|||||||
else
|
else
|
||||||
ServersGridView.Select();
|
ServersGridView.Select();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool selectedOnVisibleChanged = false;
|
||||||
|
|
||||||
|
private void ServersGridView_VisibleChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!selectedOnVisibleChanged)
|
||||||
|
{
|
||||||
|
selectedOnVisibleChanged = true;
|
||||||
|
SelectSomething();//CA-213728
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class ServerGridRow : DataGridViewExRow
|
internal class ServerGridRow : DataGridViewExRow
|
||||||
|
Loading…
Reference in New Issue
Block a user