Added blurb to the NewCustomFieldDialog; improved error message and control state checks.

Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
Konstantina Chremmou 2023-01-06 11:04:05 +00:00
parent bc40d47ba6
commit 0d1e4993ec
3 changed files with 284 additions and 193 deletions

View File

@ -31,11 +31,14 @@ namespace XenAdmin.Dialogs
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewCustomFieldDialog));
this.btnCancel = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.NameTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.TypeComboBox = new System.Windows.Forms.ComboBox();
this.DuplicateWarning = new System.Windows.Forms.Label();
this.textBoxName = new System.Windows.Forms.TextBox();
this.labelName = new System.Windows.Forms.Label();
this.labelType = new System.Windows.Forms.Label();
this.comboBoxType = new System.Windows.Forms.ComboBox();
this.labelDuplicate = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.labelBlurb = new System.Windows.Forms.Label();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// btnCancel
@ -52,37 +55,59 @@ namespace XenAdmin.Dialogs
this.okButton.Name = "okButton";
this.okButton.UseVisualStyleBackColor = true;
//
// NameTextBox
// textBoxName
//
resources.ApplyResources(this.NameTextBox, "NameTextBox");
this.NameTextBox.Name = "NameTextBox";
this.NameTextBox.TextChanged += new System.EventHandler(this.NameTextBox_TextChanged);
resources.ApplyResources(this.textBoxName, "textBoxName");
this.tableLayoutPanel1.SetColumnSpan(this.textBoxName, 2);
this.textBoxName.Name = "textBoxName";
this.textBoxName.TextChanged += new System.EventHandler(this.NameTextBox_TextChanged);
//
// label1
// labelName
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
resources.ApplyResources(this.labelName, "labelName");
this.labelName.Name = "labelName";
//
// label2
// labelType
//
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
resources.ApplyResources(this.labelType, "labelType");
this.labelType.Name = "labelType";
//
// TypeComboBox
// comboBoxType
//
resources.ApplyResources(this.TypeComboBox, "TypeComboBox");
this.TypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.TypeComboBox.FormattingEnabled = true;
this.TypeComboBox.Items.AddRange(new object[] {
resources.GetString("TypeComboBox.Items"),
resources.GetString("TypeComboBox.Items1")});
this.TypeComboBox.Name = "TypeComboBox";
resources.ApplyResources(this.comboBoxType, "comboBoxType");
this.tableLayoutPanel1.SetColumnSpan(this.comboBoxType, 2);
this.comboBoxType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxType.FormattingEnabled = true;
this.comboBoxType.Items.AddRange(new object[] {
resources.GetString("comboBoxType.Items"),
resources.GetString("comboBoxType.Items1")});
this.comboBoxType.Name = "comboBoxType";
//
// DuplicateWarning
// labelDuplicate
//
resources.ApplyResources(this.DuplicateWarning, "DuplicateWarning");
this.DuplicateWarning.ForeColor = System.Drawing.Color.Red;
this.DuplicateWarning.Name = "DuplicateWarning";
resources.ApplyResources(this.labelDuplicate, "labelDuplicate");
this.tableLayoutPanel1.SetColumnSpan(this.labelDuplicate, 2);
this.labelDuplicate.ForeColor = System.Drawing.Color.Red;
this.labelDuplicate.Name = "labelDuplicate";
//
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.labelBlurb, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.textBoxName, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.comboBoxType, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.labelDuplicate, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.btnCancel, 2, 4);
this.tableLayoutPanel1.Controls.Add(this.labelName, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.labelType, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.okButton, 1, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// labelBlurb
//
resources.ApplyResources(this.labelBlurb, "labelBlurb");
this.tableLayoutPanel1.SetColumnSpan(this.labelBlurb, 3);
this.labelBlurb.Name = "labelBlurb";
//
// NewCustomFieldDialog
//
@ -90,27 +115,24 @@ namespace XenAdmin.Dialogs
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.DuplicateWarning);
this.Controls.Add(this.TypeComboBox);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.NameTextBox);
this.Controls.Add(this.okButton);
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "NewCustomFieldDialog";
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.TextBox NameTextBox;
private System.Windows.Forms.TextBox textBoxName;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox TypeComboBox;
private System.Windows.Forms.Label DuplicateWarning;
private System.Windows.Forms.Label labelName;
private System.Windows.Forms.Label labelType;
private System.Windows.Forms.ComboBox comboBoxType;
private System.Windows.Forms.Label labelDuplicate;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label labelBlurb;
}
}

View File

@ -29,6 +29,7 @@
*/
using System;
using System.Linq;
using XenAdmin.CustomFields;
using XenAdmin.Network;
@ -41,36 +42,32 @@ namespace XenAdmin.Dialogs
{
InitializeComponent();
okButton.Enabled = !string.IsNullOrEmpty(NameTextBox.Text);
TypeComboBox.SelectedIndex = 0;
comboBoxType.SelectedIndex = 0;
UpdateControls();
}
public CustomFieldDefinition Definition
public CustomFieldDefinition Definition =>
new CustomFieldDefinition(textBoxName.Text.Trim(), (CustomFieldDefinition.Types)comboBoxType.SelectedIndex);
private void UpdateControls()
{
get
if (string.IsNullOrWhiteSpace(textBoxName.Text))
{
return new CustomFieldDefinition(NameTextBox.Text.Trim(),
(CustomFieldDefinition.Types)TypeComboBox.SelectedIndex);
okButton.Enabled = false;
labelDuplicate.Visible = false;
return;
}
var existingCustomFields = CustomFieldsManager.GetCustomFields(connection);
var isDuplicate = existingCustomFields.Any(f => f.Name.Trim() == textBoxName.Text.Trim());
okButton.Enabled = !isDuplicate;
labelDuplicate.Visible = isDuplicate;
}
private void NameTextBox_TextChanged(object sender, EventArgs e)
{
okButton.Enabled = EnableOKButton();
DuplicateWarning.Visible = IsDuplicate();
}
private bool IsDuplicate()
{
foreach (CustomFieldDefinition customFieldDefinition in CustomFieldsManager.GetCustomFields(connection))
if (customFieldDefinition.Name.Trim() == Definition.Name.Trim())
return true;
return false;
}
private bool EnableOKButton()
{
return !string.IsNullOrEmpty(NameTextBox.Text.Trim()) && !IsDuplicate();
UpdateControls();
}
}
}

View File

@ -112,16 +112,16 @@
<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="btnCancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</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="btnCancel.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
@ -129,17 +129,14 @@
<value>NoControl</value>
</data>
<data name="btnCancel.Location" type="System.Drawing.Point, System.Drawing">
<value>222, 98</value>
</data>
<data name="btnCancel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 3, 0, 3</value>
<value>246, 135</value>
</data>
<data name="btnCancel.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</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="btnCancel.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
<value>7</value>
</data>
<data name="btnCancel.Text" xml:space="preserve">
<value>Cancel</value>
@ -148,10 +145,10 @@
<value>btnCancel</value>
</data>
<data name="&gt;&gt;btnCancel.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="&gt;&gt;btnCancel.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;btnCancel.ZOrder" xml:space="preserve">
<value>4</value>
@ -166,16 +163,13 @@
<value>NoControl</value>
</data>
<data name="okButton.Location" type="System.Drawing.Point, System.Drawing">
<value>140, 98</value>
</data>
<data name="okButton.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 8, 3, 3</value>
<value>165, 135</value>
</data>
<data name="okButton.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="okButton.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
<value>6</value>
</data>
<data name="okButton.Text" xml:space="preserve">
<value>OK</value>
@ -184,175 +178,253 @@
<value>okButton</value>
</data>
<data name="&gt;&gt;okButton.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="&gt;&gt;okButton.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;okButton.ZOrder" xml:space="preserve">
<value>6</value>
<value>7</value>
</data>
<data name="NameTextBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
<data name="textBoxName.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left, Right</value>
</data>
<data name="NameTextBox.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="NameTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>74, 13</value>
</data>
<data name="NameTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>223, 23</value>
</data>
<data name="NameTextBox.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;NameTextBox.Name" xml:space="preserve">
<value>NameTextBox</value>
</data>
<data name="&gt;&gt;NameTextBox.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;NameTextBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;NameTextBox.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 16</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>42, 15</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>&amp;Name:</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<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>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<data name="labelBlurb.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label2.Font" type="System.Drawing.Font, System.Drawing">
<data name="labelBlurb.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelBlurb.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 62</value>
<data name="labelBlurb.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 0</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>36, 15</value>
<data name="labelBlurb.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 0, 3, 15</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
<data name="labelBlurb.Size" type="System.Drawing.Size, System.Drawing">
<value>318, 30</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>&amp;Type:</value>
<data name="labelBlurb.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
<data name="labelBlurb.Text" xml:space="preserve">
<value>Enter a name for the new custom field and select its type. The new field will be available to all resources in the pool.</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;labelBlurb.Name" xml:space="preserve">
<value>labelBlurb</value>
</data>
<data name="&gt;&gt;label2.Parent" xml:space="preserve">
<value>$this</value>
<data name="&gt;&gt;labelBlurb.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.ZOrder" xml:space="preserve">
<value>2</value>
<data name="&gt;&gt;labelBlurb.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="TypeComboBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
<data name="&gt;&gt;labelBlurb.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="TypeComboBox.Font" type="System.Drawing.Font, System.Drawing">
<data name="comboBoxType.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left, Right</value>
</data>
<data name="comboBoxType.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="TypeComboBox.Items" xml:space="preserve">
<data name="comboBoxType.Items" xml:space="preserve">
<value>Text</value>
</data>
<data name="TypeComboBox.Items1" xml:space="preserve">
<data name="comboBoxType.Items1" xml:space="preserve">
<value>Date &amp; Time</value>
</data>
<data name="TypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
<value>74, 59</value>
<data name="comboBoxType.Location" type="System.Drawing.Point, System.Drawing">
<value>51, 94</value>
</data>
<data name="TypeComboBox.Size" type="System.Drawing.Size, System.Drawing">
<value>223, 23</value>
<data name="comboBoxType.Size" type="System.Drawing.Size, System.Drawing">
<value>270, 23</value>
</data>
<data name="TypeComboBox.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
<data name="comboBoxType.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;TypeComboBox.Name" xml:space="preserve">
<value>TypeComboBox</value>
<data name="&gt;&gt;comboBoxType.Name" xml:space="preserve">
<value>comboBoxType</value>
</data>
<data name="&gt;&gt;TypeComboBox.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<data name="&gt;&gt;comboBoxType.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;TypeComboBox.Parent" xml:space="preserve">
<value>$this</value>
<data name="&gt;&gt;comboBoxType.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;TypeComboBox.ZOrder" xml:space="preserve">
<value>1</value>
<data name="&gt;&gt;comboBoxType.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="DuplicateWarning.AutoSize" type="System.Boolean, mscorlib">
<data name="labelDuplicate.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="DuplicateWarning.Font" type="System.Drawing.Font, System.Drawing">
<data name="labelDuplicate.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="DuplicateWarning.Location" type="System.Drawing.Point, System.Drawing">
<value>71, 39</value>
<data name="labelDuplicate.Location" type="System.Drawing.Point, System.Drawing">
<value>51, 74</value>
</data>
<data name="DuplicateWarning.Size" type="System.Drawing.Size, System.Drawing">
<value>195, 15</value>
<data name="labelDuplicate.Size" type="System.Drawing.Size, System.Drawing">
<value>241, 15</value>
</data>
<data name="DuplicateWarning.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
<data name="labelDuplicate.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="DuplicateWarning.Text" xml:space="preserve">
<value>Cannot add duplicate custom fields</value>
<data name="labelDuplicate.Text" xml:space="preserve">
<value>A custom filed with this name already exists.</value>
</data>
<data name="DuplicateWarning.Visible" type="System.Boolean, mscorlib">
<data name="labelDuplicate.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;DuplicateWarning.Name" xml:space="preserve">
<value>DuplicateWarning</value>
<data name="&gt;&gt;labelDuplicate.Name" xml:space="preserve">
<value>labelDuplicate</value>
</data>
<data name="&gt;&gt;DuplicateWarning.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;labelDuplicate.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;DuplicateWarning.Parent" xml:space="preserve">
<value>$this</value>
<data name="&gt;&gt;labelDuplicate.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;DuplicateWarning.ZOrder" xml:space="preserve">
<data name="&gt;&gt;labelDuplicate.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="labelName.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelName.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelName.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelName.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 52</value>
</data>
<data name="labelName.Size" type="System.Drawing.Size, System.Drawing">
<value>42, 15</value>
</data>
<data name="labelName.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="labelName.Text" xml:space="preserve">
<value>&amp;Name:</value>
</data>
<data name="&gt;&gt;labelName.Name" xml:space="preserve">
<value>labelName</value>
</data>
<data name="&gt;&gt;labelName.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;labelName.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelName.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="labelType.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelType.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelType.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelType.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 98</value>
</data>
<data name="labelType.Size" type="System.Drawing.Size, System.Drawing">
<value>34, 15</value>
</data>
<data name="labelType.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="labelType.Text" xml:space="preserve">
<value>&amp;Type:</value>
</data>
<data name="&gt;&gt;labelType.Name" xml:space="preserve">
<value>labelType</value>
</data>
<data name="&gt;&gt;labelType.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;labelType.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelType.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="tableLayoutPanel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="tableLayoutPanel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>10, 10</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>324, 161</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.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;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</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="labelBlurb" Row="0" RowSpan="1" Column="0" ColumnSpan="3" /&gt;&lt;Control Name="textBoxName" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="comboBoxType" Row="3" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="labelDuplicate" Row="2" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="btnCancel" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /&gt;&lt;Control Name="labelName" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelType" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="okButton" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100,AutoSize,0" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,Absolute,17,AutoSize,0,Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="textBoxName.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="textBoxName.Location" type="System.Drawing.Point, System.Drawing">
<value>51, 48</value>
</data>
<data name="textBoxName.Size" type="System.Drawing.Size, System.Drawing">
<value>270, 23</value>
</data>
<data name="textBoxName.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;textBoxName.Name" xml:space="preserve">
<value>textBoxName</value>
</data>
<data name="&gt;&gt;textBoxName.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;textBoxName.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;textBoxName.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<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">
<value>96, 96</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>310, 127</value>
<value>344, 181</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 8pt</value>
@ -367,6 +439,6 @@
<value>NewCustomFieldDialog</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>XenAdmin.Dialogs.XenDialogBase, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>XenAdmin.Dialogs.XenDialogBase, [XenCenter_No_Space], Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>