CA-224724: VBD edit page: show 'position in use' message on the dropdown items

requested changed by code review

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2017-06-28 09:28:07 +01:00 committed by Konstantina Chremmou
parent 5df4d174c0
commit 33c95f5e6f
2 changed files with 7 additions and 1 deletions

View File

@ -391,7 +391,7 @@ namespace XenAdmin.SettingsPanels
return position;
if (vdi != null)
return string.Format(Messages.VBD_EDIT_CURRENTLY_IN_USE_BY, position, vdi.ToString());
return string.Format(Messages.VBD_EDIT_CURRENTLY_IN_USE_BY, position, vdi.ToString().Ellipsise(30));
return string.Format(Messages.VBD_EDIT_CURRENTLY_IN_USE, position);
}

View File

@ -195,9 +195,15 @@
<data name="devicePositionComboBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
</data>
<data name="devicePositionComboBox.IntegralHeight" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="devicePositionComboBox.Location" type="System.Drawing.Point, System.Drawing">
<value>122, 84</value>
</data>
<data name="devicePositionComboBox.MaxDropDownItems" type="System.Int32, mscorlib">
<value>15</value>
</data>
<data name="devicePositionComboBox.Size" type="System.Drawing.Size, System.Drawing">
<value>281, 21</value>
</data>