This commit is contained in:
parent
b4d5b3f70a
commit
7ff92624f6
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user