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

@@ -247,6 +247,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("FolderAssignmentCount", true);
if (_FolderAssignmentCount < 0)
_FolderAssignmentCount = FolderAssignments.Count;
return _FolderAssignmentCount;
}
}
@@ -267,6 +269,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshFolderAssignments()
{
_FolderAssignmentCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FolderID.ToString()))
foreach (FolderInfo tmp in _CacheByPrimaryKey[_FolderID.ToString()])
@@ -282,6 +285,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("FolderDocVersionCount", true);
if (_FolderDocVersionCount < 0)
_FolderDocVersionCount = FolderDocVersions.Count;
return _FolderDocVersionCount;
}
}
@@ -302,6 +307,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshFolderDocVersions()
{
_FolderDocVersionCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FolderID.ToString()))
foreach (FolderInfo tmp in _CacheByPrimaryKey[_FolderID.ToString()])
@@ -317,6 +323,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("ChildFolderCount", true);
if (_ChildFolderCount < 0)
_ChildFolderCount = ChildFolders.Count;
return _ChildFolderCount;
}
}
@@ -337,6 +345,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshChildFolders()
{
_ChildFolderCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_FolderID.ToString()))
foreach (FolderInfo tmp in _CacheByPrimaryKey[_FolderID.ToString()])