Limit Library Document lists to 20 items so that the tooltip and the dialog remain within the bounds of the screen.
This commit is contained in:
parent
4b26543dca
commit
82263e28fb
@ -95,10 +95,17 @@ namespace VEPROMS.CSLA.Library
|
||||
sb.Append("None");
|
||||
else
|
||||
{
|
||||
int limit = 20;
|
||||
foreach (EntryInfo myEntry in DocumentEntries)
|
||||
{
|
||||
foreach (ItemInfo myItem in myEntry.MyContent.ContentItems)
|
||||
{
|
||||
--limit;
|
||||
if (limit < 0)
|
||||
{
|
||||
sb.Append(sep + "...");
|
||||
return sb.ToString();
|
||||
}
|
||||
ItemInfo proc = myItem.MyProcedure;
|
||||
sb.Append(sep + proc.DisplayNumber + " - " + proc.DisplayText);
|
||||
sep = "\r\n ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user