This commit is contained in:
Kathy Ruffing 2012-04-11 14:19:36 +00:00
parent b4d5b3f70a
commit 7ff92624f6

View File

@ -146,6 +146,12 @@ namespace VEPROMS.CSLA.Library
{ get { return (E_FromTypes)_FromType; } } { get { return (E_FromTypes)_FromType; } }
public override string ToString() public override string ToString()
{ {
// if the parttype is table or figure, add the correct label:
if (PartTypes == E_FromTypes.Tables)
{
if (MyItems != null && MyItems[0].IsTable) return ("Table");
if (MyItems != null && MyItems[0].IsFigure) return ("Figure");
}
return string.Format("{0}", PartTypes); return string.Format("{0}", PartTypes);
} }
//public string ToString(string str, System.IFormatProvider ifp) //public string ToString(string str, System.IFormatProvider ifp)