Added LibraryDocumentUsage Property

Add Tab and ToolTip Properties
This commit is contained in:
Rich
2007-12-07 23:51:51 +00:00
parent 9a1eecbe3a
commit 2e773acb06
2 changed files with 64 additions and 0 deletions

View File

@@ -5,6 +5,17 @@ using System.IO;
namespace VEPROMS.CSLA.Library
{
public partial class Document
{
public string DocumentTitle
{
get
{
if (_LibTitle == "") return string.Format("Document {0}", _DocID);
return _LibTitle;
}
}
}
public partial class DocumentInfo
{
public string DocumentTitle
@@ -15,6 +26,24 @@ namespace VEPROMS.CSLA.Library
return _LibTitle;
}
}
public string LibraryDocumentUsage
{
get
{
StringBuilder sb = new StringBuilder();
string sep = "\r\nUsed In:\r\n ";
foreach (EntryInfo myEntry in DocumentEntries)
{
foreach (ItemInfo myItem in myEntry.MyContent.ContentItems)
{
ItemInfo proc = myItem.MyProcedure;
sb.Append(sep + proc.MyContent.Number + " - " + proc.MyContent.Text);
sep = "\r\n ";
}
}
return sb.ToString();
}
}
}
public class DSOFile : IDisposable
{