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

@@ -17,6 +17,8 @@ namespace VEPROMS.CSLA.Library
{
return string.Format("{0} {1}", MyContent.Number, MyContent.Text);
}
// TODO: Move to ItemInfo Extension
#region IVEDrillDown
public System.Collections.IList GetChildren()
{
@@ -414,6 +416,39 @@ namespace VEPROMS.CSLA.Library
// AddList(nd, "Tables", Tables);
// return xn.OwnerDocument;
//}
public string TabToolTip
{
get
{
if (MyContent.MyEntry == null)
return MyContent.Number + " - " + MyContent.Text;
string toolTip = MyProcedure.TabToolTip + "\r\n";
if (MyContent.Number != "")
toolTip += MyContent.Number + " - " + MyContent.Text;
else
toolTip += MyContent.Text;
DocumentInfo myDocument = MyContent.MyEntry.MyDocument;
if (myDocument.LibTitle != "")
{
toolTip += string.Format("\r\n(Library Document - {0})", myDocument.LibTitle);
toolTip += myDocument.LibraryDocumentUsage;
}
return toolTip;
}
}
public string TabTitle
{
get
{
if (MyContent.MyEntry == null)
return MyContent.Number;
if (MyContent.Number != "")
return MyContent.Number;
if (MyContent.Text.Length <= 10)
return MyContent.Text;
return MyContent.Text.Split(" ,.;:-_".ToCharArray())[0] + "...";
}
}
#region IVEReadOnlyItem
PartInfoList _PartInfoList;
public System.Collections.IList GetChildren()