Changed My DB reference to Generic

Fixed a memory issue when opening Verison Properties
Declare MissingTokens variable as static to reduce repetition in the Error Log.
This commit is contained in:
Rich
2011-10-06 15:57:46 +00:00
parent faf4e1b5d9
commit e80a615fa6
3 changed files with 5 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ namespace VEPROMS
if (_SelectedROFst == null)
{
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount < 1) return null;
_SelectedROFst = ROFstInfo.Get(_DocVersionConfig.MyDocVersion.DocVersionAssociations[0].MyROFst.ROFstID);
_SelectedROFst = ROFstInfo.GetJustROFst(_DocVersionConfig.MyDocVersion.DocVersionAssociations[0].ROFstID);
}
return _SelectedROFst;
}
@@ -125,7 +125,7 @@ namespace VEPROMS
// Get the ro path - there is no 'default'
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount > 0)
{
RODbInfo rdi = RODbInfo.Get(SelectedROFst.MyRODb.RODbID);
RODbInfo rdi = RODbInfo.GetJustRODB(SelectedROFst.RODbID);
tbRoDb.Text = string.Format("{0} ({1})", rdi.ROName, rdi.FolderPath);
}
else