Fix Tab Title to show if it is a LibDoc or not

This commit is contained in:
Rich 2009-04-13 20:02:05 +00:00
parent 860f70861e
commit 8946b6ca4d

View File

@ -1119,7 +1119,7 @@ namespace VEPROMS.CSLA.Library
if (MyContent.MyEntry == null) if (MyContent.MyEntry == null)
return MyContent.Number; return MyContent.Number;
if (MyContent.Number != "") if (MyContent.Number != "")
return (MyContent.MyEntry.MyDocument.LibTitle == null ? "" : "\xA3 ") + MyContent.Number; return ((MyContent.MyEntry.MyDocument.LibTitle ?? "")== "" ? "" : "\xA3 ") + MyContent.Number;
if (MyContent.Text.Length <= 10) if (MyContent.Text.Length <= 10)
return MyContent.Text; return MyContent.Text;
return MyContent.Text.Split(" ,.;:-_".ToCharArray())[0] + "..."; return MyContent.Text.Split(" ,.;:-_".ToCharArray())[0] + "...";
@ -1293,7 +1293,7 @@ namespace VEPROMS.CSLA.Library
public Color BackColor public Color BackColor
{ get { return (ItemAnnotationCount > 0 ? Color.Yellow : Color.White); } } { get { return (ItemAnnotationCount > 0 ? Color.Yellow : Color.White); } }
#endregion #endregion
internal ItemInfo(SafeDataReader dr, bool forItem) internal ItemInfo(SafeDataReader dr, bool forIRichtem)
{ {
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemInfo.Constructor", GetHashCode()); if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemInfo.Constructor", GetHashCode());
try try