Use ‘DocStyleListActive’ for section types
This commit is contained in:
@@ -28,16 +28,32 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
DocStyleList tmp = new DocStyleList(SelectNodes("DocStyle"));
|
||||
DocStyleList retval = new DocStyleList(null);
|
||||
foreach (DocStyle ds in tmp)
|
||||
{
|
||||
if (!ds.Inactive) retval.Add(ds);
|
||||
}
|
||||
foreach (DocStyle ds in tmp) retval.Add(ds);
|
||||
_DocStyleList = retval;
|
||||
}
|
||||
return (_DocStyleList);
|
||||
}
|
||||
set { _DocStyleList = value; }
|
||||
}
|
||||
private DocStyleList _DocStyleListActive;
|
||||
public DocStyleList DocStyleListActive
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_DocStyleListActive == null)
|
||||
{
|
||||
DocStyleList tmp = new DocStyleList(SelectNodes("DocStyle"));
|
||||
DocStyleList retval = new DocStyleList(null);
|
||||
foreach (DocStyle ds in tmp)
|
||||
{
|
||||
if (!ds.Inactive) retval.Add(ds);
|
||||
}
|
||||
_DocStyleListActive = retval;
|
||||
}
|
||||
return (_DocStyleListActive);
|
||||
}
|
||||
set { _DocStyleListActive = value; }
|
||||
}
|
||||
public DocStyles(XmlNode xmlNode) : base(xmlNode) { }
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user