CA-45514: XenCenter looks pretty terrible under different DPI settings

-New Network Wizard: Changing the layout on the network type selection page to make this page "dpi aware" using FlowLayoutPanel. Additional info is shown on the bottom of the panel instead of tooltips, some code has been removed that used fix positions and moved controls around.
This commit is contained in:
Gabor Apati-Nagy 2015-04-10 11:09:47 +01:00
parent 17d28304f3
commit 80e41f19bd
3 changed files with 394 additions and 287 deletions

View File

@ -28,6 +28,7 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NetWTypeSelect));
this.lblNetTypeSel = new System.Windows.Forms.Label();
this.rbtnInternalNetwork = new System.Windows.Forms.RadioButton();
@ -35,17 +36,20 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labelCHIN = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.toolTipContainerCHIN = new XenAdmin.Controls.ToolTipContainer();
this.panelCHIN = new System.Windows.Forms.Panel();
this.labelExternalNetwork = new System.Windows.Forms.Label();
this.rbtnCHIN = new System.Windows.Forms.RadioButton();
this.toolTipContainerExternal = new XenAdmin.Controls.ToolTipContainer();
this.panelExternal = new System.Windows.Forms.Panel();
this.rbtnExternalNetwork = new System.Windows.Forms.RadioButton();
this.toolTipContainerCHIN.SuspendLayout();
this.panelCHIN.SuspendLayout();
this.toolTipContainerExternal.SuspendLayout();
this.panelExternal.SuspendLayout();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.warningsTable = new System.Windows.Forms.TableLayoutPanel();
this.iconWarningChinOption = new System.Windows.Forms.PictureBox();
this.iconWarningExternalOption = new System.Windows.Forms.PictureBox();
this.labelWarningExternalOption = new System.Windows.Forms.Label();
this.labelWarningChinOption = new System.Windows.Forms.Label();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.flowLayoutPanel1.SuspendLayout();
this.warningsTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.iconWarningChinOption)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.iconWarningExternalOption)).BeginInit();
this.SuspendLayout();
//
// lblNetTypeSel
@ -80,23 +84,10 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
resources.ApplyResources(this.labelCHIN, "labelCHIN");
this.labelCHIN.Name = "labelCHIN";
//
// label2
// labelExternalNetwork
//
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
//
// toolTipContainerCHIN
//
resources.ApplyResources(this.toolTipContainerCHIN, "toolTipContainerCHIN");
this.toolTipContainerCHIN.Controls.Add(this.panelCHIN);
this.toolTipContainerCHIN.Name = "toolTipContainerCHIN";
//
// panelCHIN
//
this.panelCHIN.Controls.Add(this.rbtnCHIN);
this.panelCHIN.Controls.Add(this.labelCHIN);
resources.ApplyResources(this.panelCHIN, "panelCHIN");
this.panelCHIN.Name = "panelCHIN";
resources.ApplyResources(this.labelExternalNetwork, "labelExternalNetwork");
this.labelExternalNetwork.Name = "labelExternalNetwork";
//
// rbtnCHIN
//
@ -104,19 +95,6 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
this.rbtnCHIN.Name = "rbtnCHIN";
this.rbtnCHIN.UseVisualStyleBackColor = true;
//
// toolTipContainerExternal
//
resources.ApplyResources(this.toolTipContainerExternal, "toolTipContainerExternal");
this.toolTipContainerExternal.Controls.Add(this.panelExternal);
this.toolTipContainerExternal.Name = "toolTipContainerExternal";
//
// panelExternal
//
this.panelExternal.Controls.Add(this.rbtnExternalNetwork);
this.panelExternal.Controls.Add(this.label2);
resources.ApplyResources(this.panelExternal, "panelExternal");
this.panelExternal.Name = "panelExternal";
//
// rbtnExternalNetwork
//
resources.ApplyResources(this.rbtnExternalNetwork, "rbtnExternalNetwork");
@ -125,24 +103,70 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
this.rbtnExternalNetwork.TabStop = true;
this.rbtnExternalNetwork.UseVisualStyleBackColor = true;
//
// flowLayoutPanel1
//
resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
this.flowLayoutPanel1.Controls.Add(this.lblNetTypeSel);
this.flowLayoutPanel1.Controls.Add(this.rbtnExternalNetwork);
this.flowLayoutPanel1.Controls.Add(this.labelExternalNetwork);
this.flowLayoutPanel1.Controls.Add(this.rbtnInternalNetwork);
this.flowLayoutPanel1.Controls.Add(this.label1);
this.flowLayoutPanel1.Controls.Add(this.rbtnCHIN);
this.flowLayoutPanel1.Controls.Add(this.labelCHIN);
this.flowLayoutPanel1.Controls.Add(this.rbtnBondedNetwork);
this.flowLayoutPanel1.Controls.Add(this.label3);
this.flowLayoutPanel1.Controls.Add(this.warningsTable);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
//
// warningsTable
//
resources.ApplyResources(this.warningsTable, "warningsTable");
this.warningsTable.Controls.Add(this.iconWarningChinOption, 0, 1);
this.warningsTable.Controls.Add(this.iconWarningExternalOption, 0, 0);
this.warningsTable.Controls.Add(this.labelWarningExternalOption, 1, 0);
this.warningsTable.Controls.Add(this.labelWarningChinOption, 1, 1);
this.warningsTable.Name = "warningsTable";
//
// iconWarningChinOption
//
resources.ApplyResources(this.iconWarningChinOption, "iconWarningChinOption");
this.iconWarningChinOption.Image = global::XenAdmin.Properties.Resources._000_Info3_h32bit_16;
this.iconWarningChinOption.Name = "iconWarningChinOption";
this.iconWarningChinOption.TabStop = false;
//
// iconWarningExternalOption
//
resources.ApplyResources(this.iconWarningExternalOption, "iconWarningExternalOption");
this.iconWarningExternalOption.Image = global::XenAdmin.Properties.Resources._000_Info3_h32bit_16;
this.iconWarningExternalOption.Name = "iconWarningExternalOption";
this.iconWarningExternalOption.TabStop = false;
//
// labelWarningExternalOption
//
resources.ApplyResources(this.labelWarningExternalOption, "labelWarningExternalOption");
this.labelWarningExternalOption.Name = "labelWarningExternalOption";
//
// labelWarningChinOption
//
resources.ApplyResources(this.labelWarningChinOption, "labelWarningChinOption");
this.labelWarningChinOption.Name = "labelWarningChinOption";
//
// toolTip
//
this.toolTip.ShowAlways = true;
//
// NetWTypeSelect
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.Controls.Add(this.toolTipContainerCHIN);
this.Controls.Add(this.toolTipContainerExternal);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Controls.Add(this.rbtnBondedNetwork);
this.Controls.Add(this.lblNetTypeSel);
this.Controls.Add(this.rbtnInternalNetwork);
this.Controls.Add(this.flowLayoutPanel1);
this.Name = "NetWTypeSelect";
this.toolTipContainerCHIN.ResumeLayout(false);
this.panelCHIN.ResumeLayout(false);
this.panelCHIN.PerformLayout();
this.toolTipContainerExternal.ResumeLayout(false);
this.panelExternal.ResumeLayout(false);
this.panelExternal.PerformLayout();
this.flowLayoutPanel1.ResumeLayout(false);
this.flowLayoutPanel1.PerformLayout();
this.warningsTable.ResumeLayout(false);
this.warningsTable.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.iconWarningChinOption)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.iconWarningExternalOption)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -155,14 +179,17 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
private System.Windows.Forms.RadioButton rbtnExternalNetwork;
private System.Windows.Forms.RadioButton rbtnInternalNetwork;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label labelExternalNetwork;
private System.Windows.Forms.Label label3;
private XenAdmin.Controls.ToolTipContainer toolTipContainerExternal;
private System.Windows.Forms.Label labelCHIN;
private System.Windows.Forms.RadioButton rbtnCHIN;
private XenAdmin.Controls.ToolTipContainer toolTipContainerCHIN;
private System.Windows.Forms.Panel panelExternal;
private System.Windows.Forms.Panel panelCHIN;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.ToolTip toolTip;
private System.Windows.Forms.TableLayoutPanel warningsTable;
private System.Windows.Forms.PictureBox iconWarningExternalOption;
private System.Windows.Forms.PictureBox iconWarningChinOption;
private System.Windows.Forms.Label labelWarningExternalOption;
private System.Windows.Forms.Label labelWarningChinOption;
}
}

View File

@ -84,15 +84,17 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
if (master.RestrictVLAN)
{
rbtnExternalNetwork.Checked = false;
panelExternal.Enabled = false;
rbtnExternalNetwork.Enabled = labelExternalNetwork.Enabled = false;
toolTipContainerExternal.SetToolTip(Messages.EXTERNAL_NETWORKS_REQUIRE_STANDARD);
labelWarningExternalOption.Text = Messages.EXTERNAL_NETWORKS_REQUIRE_STANDARD;
iconWarningExternalOption.Visible = labelWarningExternalOption.Visible = true;
rbtnInternalNetwork.Checked = true;
}
else
{
RemoveFromToolTip(toolTipContainerExternal, panelExternal);
rbtnExternalNetwork.Enabled = labelExternalNetwork.Enabled = true;
iconWarningExternalOption.Visible = labelWarningExternalOption.Visible = false;
}
Pool pool = Helpers.GetPoolOfOne(connection);
@ -100,12 +102,14 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
if (!pool.vSwitchController)
{
rbtnCHIN.Checked = false;
panelCHIN.Enabled = false;
rbtnCHIN.Enabled = labelCHIN.Enabled = false;
toolTipContainerCHIN.SetToolTip(
labelWarningChinOption.Text =
!Helpers.CowleyOrGreater(connection) || Helpers.FeatureForbidden(connection, Host.RestrictVSwitchController) ?
string.Format(Messages.FEATURE_NOT_AVAILABLE_NEED_COWLEY_ENTERPRISE_OR_PLATINUM_PLURAL, Messages.CHINS) :
Messages.CHINS_NEED_VSWITCHCONTROLLER);
Messages.CHINS_NEED_VSWITCHCONTROLLER;
iconWarningChinOption.Enabled = labelWarningChinOption.Enabled = true;
if (master.RestrictVLAN)
rbtnInternalNetwork.Checked = true;
@ -114,32 +118,9 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
}
else
{
RemoveFromToolTip(toolTipContainerCHIN, panelCHIN);
rbtnCHIN.Enabled = labelCHIN.Enabled = true;
iconWarningChinOption.Visible = labelWarningChinOption.Visible = false;
}
}
private void RemoveFromToolTip(ToolTipContainer container, Panel panel)
{
// We have to remove the controls from the panel (rather than just
// the panel from the container) in order to make all the radio buttons
// on the page into one group.
List<Control> controls = new List<Control>(); // need to make a copy because we're about to mess with it
foreach (Control control in panel.Controls)
controls.Add(control);
foreach (Control control in controls)
{
Point location = container.Location;
location.Offset(control.Location);
panel.Controls.Remove(control);
control.Visible = true;
control.Dock = DockStyle.None;
Controls.Add(control);
control.Location = location;
}
Controls.Remove(container);
}
}
}

View File

@ -112,22 +112,25 @@
<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="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="lblNetTypeSel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<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="lblNetTypeSel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</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="lblNetTypeSel.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 3</value>
<value>3, 3</value>
</data>
<data name="lblNetTypeSel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="lblNetTypeSel.Size" type="System.Drawing.Size, System.Drawing">
<value>279, 13</value>
@ -145,13 +148,13 @@
<value>lblNetTypeSel</value>
</data>
<data name="&gt;&gt;lblNetTypeSel.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="&gt;&gt;lblNetTypeSel.Parent" xml:space="preserve">
<value>$this</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;lblNetTypeSel.ZOrder" xml:space="preserve">
<value>5</value>
<value>0</value>
</data>
<data name="rbtnInternalNetwork.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -163,7 +166,10 @@
<value>NoControl</value>
</data>
<data name="rbtnInternalNetwork.Location" type="System.Drawing.Point, System.Drawing">
<value>17, 80</value>
<value>20, 81</value>
</data>
<data name="rbtnInternalNetwork.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>20, 6, 3, 3</value>
</data>
<data name="rbtnInternalNetwork.Size" type="System.Drawing.Size, System.Drawing">
<value>196, 17</value>
@ -178,13 +184,13 @@
<value>rbtnInternalNetwork</value>
</data>
<data name="&gt;&gt;rbtnInternalNetwork.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnInternalNetwork.Parent" xml:space="preserve">
<value>$this</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;rbtnInternalNetwork.ZOrder" xml:space="preserve">
<value>6</value>
<value>3</value>
</data>
<data name="rbtnBondedNetwork.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -196,7 +202,10 @@
<value>NoControl</value>
</data>
<data name="rbtnBondedNetwork.Location" type="System.Drawing.Point, System.Drawing">
<value>20, 208</value>
<value>20, 204</value>
</data>
<data name="rbtnBondedNetwork.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>20, 6, 3, 3</value>
</data>
<data name="rbtnBondedNetwork.Size" type="System.Drawing.Size, System.Drawing">
<value>117, 17</value>
@ -211,13 +220,13 @@
<value>rbtnBondedNetwork</value>
</data>
<data name="&gt;&gt;rbtnBondedNetwork.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnBondedNetwork.Parent" xml:space="preserve">
<value>$this</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;rbtnBondedNetwork.ZOrder" xml:space="preserve">
<value>4</value>
<value>7</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -226,7 +235,10 @@
<value>NoControl</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>37, 100</value>
<value>46, 101</value>
</data>
<data name="label1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>46, 0, 3, 3</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>359, 26</value>
@ -242,13 +254,13 @@ This can be used as a private connection between VMs on the same host.</value>
<value>label1</value>
</data>
<data name="&gt;&gt;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="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>3</value>
<value>4</value>
</data>
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -257,7 +269,10 @@ This can be used as a private connection between VMs on the same host.</value>
<value>NoControl</value>
</data>
<data name="label3.Location" type="System.Drawing.Point, System.Drawing">
<value>38, 228</value>
<value>46, 224</value>
</data>
<data name="label3.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>46, 0, 3, 3</value>
</data>
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
<value>320, 26</value>
@ -273,13 +288,13 @@ This will create a single higher performing channel.</value>
<value>label3</value>
</data>
<data name="&gt;&gt;label3.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="&gt;&gt;label3.Parent" xml:space="preserve">
<value>$this</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;label3.ZOrder" xml:space="preserve">
<value>2</value>
<value>8</value>
</data>
<data name="labelCHIN.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
@ -291,10 +306,13 @@ This will create a single higher performing channel.</value>
<value>NoControl</value>
</data>
<data name="labelCHIN.Location" type="System.Drawing.Point, System.Drawing">
<value>19, 20</value>
<value>46, 156</value>
</data>
<data name="labelCHIN.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>46, 0, 3, 3</value>
</data>
<data name="labelCHIN.Size" type="System.Drawing.Size, System.Drawing">
<value>331, 39</value>
<value>359, 39</value>
</data>
<data name="labelCHIN.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
@ -308,118 +326,49 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>labelCHIN</value>
</data>
<data name="&gt;&gt;labelCHIN.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="&gt;&gt;labelCHIN.Parent" xml:space="preserve">
<value>panelCHIN</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelCHIN.ZOrder" xml:space="preserve">
<value>1</value>
<value>6</value>
</data>
<data name="label2.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<data name="labelExternalNetwork.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<data name="labelExternalNetwork.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="labelExternalNetwork.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>19, 20</value>
<data name="labelExternalNetwork.Location" type="System.Drawing.Point, System.Drawing">
<value>46, 59</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>303, 13</value>
<data name="labelExternalNetwork.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>46, 0, 3, 3</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<data name="labelExternalNetwork.Size" type="System.Drawing.Size, System.Drawing">
<value>359, 13</value>
</data>
<data name="labelExternalNetwork.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="label2.Text" xml:space="preserve">
<data name="labelExternalNetwork.Text" xml:space="preserve">
<value>Create a network that passes traffic over one of your VLANs.</value>
</data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
<data name="&gt;&gt;labelExternalNetwork.Name" xml:space="preserve">
<value>labelExternalNetwork</value>
</data>
<data name="&gt;&gt;label2.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<data name="&gt;&gt;labelExternalNetwork.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label2.Parent" xml:space="preserve">
<value>panelExternal</value>
<data name="&gt;&gt;labelExternalNetwork.Parent" xml:space="preserve">
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="toolTipContainerCHIN.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
</data>
<data name="&gt;&gt;panelCHIN.Name" xml:space="preserve">
<value>panelCHIN</value>
</data>
<data name="&gt;&gt;panelCHIN.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelCHIN.Parent" xml:space="preserve">
<value>toolTipContainerCHIN</value>
</data>
<data name="&gt;&gt;panelCHIN.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="toolTipContainerCHIN.Location" type="System.Drawing.Point, System.Drawing">
<value>19, 134</value>
</data>
<data name="toolTipContainerCHIN.Size" type="System.Drawing.Size, System.Drawing">
<value>380, 72</value>
</data>
<data name="toolTipContainerCHIN.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;toolTipContainerCHIN.Name" xml:space="preserve">
<value>toolTipContainerCHIN</value>
</data>
<data name="&gt;&gt;toolTipContainerCHIN.Type" xml:space="preserve">
<value>XenAdmin.Controls.ToolTipContainer, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;toolTipContainerCHIN.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;toolTipContainerCHIN.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;rbtnCHIN.Name" xml:space="preserve">
<value>rbtnCHIN</value>
</data>
<data name="&gt;&gt;rbtnCHIN.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnCHIN.Parent" xml:space="preserve">
<value>panelCHIN</value>
</data>
<data name="&gt;&gt;rbtnCHIN.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="panelCHIN.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="panelCHIN.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="panelCHIN.Size" type="System.Drawing.Size, System.Drawing">
<value>380, 72</value>
</data>
<data name="panelCHIN.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="&gt;&gt;panelCHIN.Name" xml:space="preserve">
<value>panelCHIN</value>
</data>
<data name="&gt;&gt;panelCHIN.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelCHIN.Parent" xml:space="preserve">
<value>toolTipContainerCHIN</value>
</data>
<data name="&gt;&gt;panelCHIN.ZOrder" xml:space="preserve">
<value>1</value>
<data name="&gt;&gt;labelExternalNetwork.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="rbtnCHIN.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -431,7 +380,10 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>NoControl</value>
</data>
<data name="rbtnCHIN.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
<value>20, 136</value>
</data>
<data name="rbtnCHIN.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>20, 6, 3, 3</value>
</data>
<data name="rbtnCHIN.Size" type="System.Drawing.Size, System.Drawing">
<value>193, 17</value>
@ -446,85 +398,13 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>rbtnCHIN</value>
</data>
<data name="&gt;&gt;rbtnCHIN.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnCHIN.Parent" xml:space="preserve">
<value>panelCHIN</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;rbtnCHIN.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="toolTipContainerExternal.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
</data>
<data name="&gt;&gt;panelExternal.Name" xml:space="preserve">
<value>panelExternal</value>
</data>
<data name="&gt;&gt;panelExternal.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelExternal.Parent" xml:space="preserve">
<value>toolTipContainerExternal</value>
</data>
<data name="&gt;&gt;panelExternal.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="toolTipContainerExternal.Location" type="System.Drawing.Point, System.Drawing">
<value>19, 39</value>
</data>
<data name="toolTipContainerExternal.Size" type="System.Drawing.Size, System.Drawing">
<value>380, 35</value>
</data>
<data name="toolTipContainerExternal.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;toolTipContainerExternal.Name" xml:space="preserve">
<value>toolTipContainerExternal</value>
</data>
<data name="&gt;&gt;toolTipContainerExternal.Type" xml:space="preserve">
<value>XenAdmin.Controls.ToolTipContainer, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;toolTipContainerExternal.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;toolTipContainerExternal.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.Name" xml:space="preserve">
<value>rbtnExternalNetwork</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.Parent" xml:space="preserve">
<value>panelExternal</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="panelExternal.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="panelExternal.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="panelExternal.Size" type="System.Drawing.Size, System.Drawing">
<value>380, 35</value>
</data>
<data name="panelExternal.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="&gt;&gt;panelExternal.Name" xml:space="preserve">
<value>panelExternal</value>
</data>
<data name="&gt;&gt;panelExternal.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelExternal.Parent" xml:space="preserve">
<value>toolTipContainerExternal</value>
</data>
<data name="&gt;&gt;panelExternal.ZOrder" xml:space="preserve">
<value>1</value>
<value>5</value>
</data>
<data name="rbtnExternalNetwork.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -536,7 +416,10 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>NoControl</value>
</data>
<data name="rbtnExternalNetwork.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
<value>20, 39</value>
</data>
<data name="rbtnExternalNetwork.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>20, 20, 3, 3</value>
</data>
<data name="rbtnExternalNetwork.Size" type="System.Drawing.Size, System.Drawing">
<value>122, 17</value>
@ -551,15 +434,225 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>rbtnExternalNetwork</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.Parent" xml:space="preserve">
<value>panelExternal</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;rbtnExternalNetwork.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="flowLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="warningsTable.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="warningsTable.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="iconWarningChinOption.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="iconWarningChinOption.ErrorImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="iconWarningChinOption.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="iconWarningChinOption.InitialImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="iconWarningChinOption.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 25</value>
</data>
<data name="iconWarningChinOption.Size" type="System.Drawing.Size, System.Drawing">
<value>16, 16</value>
</data>
<data name="iconWarningChinOption.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>AutoSize</value>
</data>
<data name="iconWarningChinOption.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="&gt;&gt;iconWarningChinOption.Name" xml:space="preserve">
<value>iconWarningChinOption</value>
</data>
<data name="&gt;&gt;iconWarningChinOption.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;iconWarningChinOption.Parent" xml:space="preserve">
<value>warningsTable</value>
</data>
<data name="&gt;&gt;iconWarningChinOption.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<data name="iconWarningExternalOption.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="iconWarningExternalOption.ErrorImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="iconWarningExternalOption.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="iconWarningExternalOption.InitialImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="iconWarningExternalOption.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="iconWarningExternalOption.Size" type="System.Drawing.Size, System.Drawing">
<value>16, 16</value>
</data>
<data name="iconWarningExternalOption.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>AutoSize</value>
</data>
<data name="iconWarningExternalOption.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="&gt;&gt;iconWarningExternalOption.Name" xml:space="preserve">
<value>iconWarningExternalOption</value>
</data>
<data name="&gt;&gt;iconWarningExternalOption.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;iconWarningExternalOption.Parent" xml:space="preserve">
<value>warningsTable</value>
</data>
<data name="&gt;&gt;iconWarningExternalOption.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="labelWarningExternalOption.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelWarningExternalOption.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelWarningExternalOption.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="labelWarningExternalOption.Location" type="System.Drawing.Point, System.Drawing">
<value>25, 4</value>
</data>
<data name="labelWarningExternalOption.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="labelWarningExternalOption.Size" type="System.Drawing.Size, System.Drawing">
<value>45, 13</value>
</data>
<data name="labelWarningExternalOption.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="labelWarningExternalOption.Text" xml:space="preserve">
<value>warning</value>
</data>
<data name="&gt;&gt;labelWarningExternalOption.Name" xml:space="preserve">
<value>labelWarningExternalOption</value>
</data>
<data name="&gt;&gt;labelWarningExternalOption.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelWarningExternalOption.Parent" xml:space="preserve">
<value>warningsTable</value>
</data>
<data name="&gt;&gt;labelWarningExternalOption.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="labelWarningChinOption.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelWarningChinOption.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelWarningChinOption.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="labelWarningChinOption.Location" type="System.Drawing.Point, System.Drawing">
<value>25, 26</value>
</data>
<data name="labelWarningChinOption.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="labelWarningChinOption.Size" type="System.Drawing.Size, System.Drawing">
<value>45, 13</value>
</data>
<data name="labelWarningChinOption.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="labelWarningChinOption.Text" xml:space="preserve">
<value>warning</value>
</data>
<data name="&gt;&gt;labelWarningChinOption.Name" xml:space="preserve">
<value>labelWarningChinOption</value>
</data>
<data name="&gt;&gt;labelWarningChinOption.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelWarningChinOption.Parent" xml:space="preserve">
<value>warningsTable</value>
</data>
<data name="&gt;&gt;labelWarningChinOption.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="warningsTable.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 269</value>
</data>
<data name="warningsTable.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 16, 3, 12</value>
</data>
<data name="warningsTable.RowCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="warningsTable.Size" type="System.Drawing.Size, System.Drawing">
<value>73, 44</value>
</data>
<data name="warningsTable.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="&gt;&gt;warningsTable.Name" xml:space="preserve">
<value>warningsTable</value>
</data>
<data name="&gt;&gt;warningsTable.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;warningsTable.Parent" xml:space="preserve">
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;warningsTable.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="warningsTable.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="iconWarningChinOption" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="iconWarningExternalOption" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelWarningExternalOption" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="labelWarningChinOption" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="flowLayoutPanel1.FlowDirection" type="System.Windows.Forms.FlowDirection, System.Windows.Forms">
<value>TopDown</value>
</data>
<data name="flowLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="flowLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>504, 333</value>
</data>
<data name="flowLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="&gt;&gt;flowLayoutPanel1.Name" xml:space="preserve">
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;flowLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;flowLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;flowLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<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">
@ -572,11 +665,17 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>0, 32, 0, 0</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>416, 269</value>
<value>430, 318</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Select Type</value>
</data>
<data name="&gt;&gt;toolTip.Name" xml:space="preserve">
<value>toolTip</value>
</data>
<data name="&gt;&gt;toolTip.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolTip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>NetWTypeSelect</value>
</data>