Add initialization and reset code

This commit is contained in:
Rich
2009-03-25 15:00:02 +00:00
parent 8670872604
commit 612b043186
39 changed files with 126 additions and 2 deletions

View File

@@ -193,6 +193,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("FormatContentCount", true);
if (_FormatContentCount < 0)
_FormatContentCount = FormatContents.Count;
return _FormatContentCount;
}
}
@@ -213,6 +215,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshFormatContents()
{
_FormatContentCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FormatID.ToString()))
foreach (FormatInfo tmp in _CacheByPrimaryKey[_FormatID.ToString()])
@@ -228,6 +231,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("FormatDocVersionCount", true);
if (_FormatDocVersionCount < 0)
_FormatDocVersionCount = FormatDocVersions.Count;
return _FormatDocVersionCount;
}
}
@@ -248,6 +253,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshFormatDocVersions()
{
_FormatDocVersionCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FormatID.ToString()))
foreach (FormatInfo tmp in _CacheByPrimaryKey[_FormatID.ToString()])
@@ -263,6 +269,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("FormatFolderCount", true);
if (_FormatFolderCount < 0)
_FormatFolderCount = FormatFolders.Count;
return _FormatFolderCount;
}
}
@@ -283,6 +291,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshFormatFolders()
{
_FormatFolderCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FormatID.ToString()))
foreach (FormatInfo tmp in _CacheByPrimaryKey[_FormatID.ToString()])
@@ -298,6 +307,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("ChildFormatCount", true);
if (_ChildFormatCount < 0)
_ChildFormatCount = ChildFormats.Count;
return _ChildFormatCount;
}
}
@@ -318,6 +329,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshChildFormats()
{
_ChildFormatCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FormatID.ToString()))
foreach (FormatInfo tmp in _CacheByPrimaryKey[_FormatID.ToString()])