From e80a615fa6aae590d62fe0b483687a22a45866c4 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 6 Oct 2011 15:57:46 +0000 Subject: [PATCH] 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. --- PROMS/VEPROMS User Interface/App.config | 5 ++--- PROMS/VEPROMS User Interface/frmVersionsProperties.cs | 4 ++-- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/PROMS/VEPROMS User Interface/App.config b/PROMS/VEPROMS User Interface/App.config index e739b641..fa8cf31c 100644 --- a/PROMS/VEPROMS User Interface/App.config +++ b/PROMS/VEPROMS User Interface/App.config @@ -88,9 +88,8 @@ - - - + + diff --git a/PROMS/VEPROMS User Interface/frmVersionsProperties.cs b/PROMS/VEPROMS User Interface/frmVersionsProperties.cs index 22c82288..a539dc2c 100644 --- a/PROMS/VEPROMS User Interface/frmVersionsProperties.cs +++ b/PROMS/VEPROMS User Interface/frmVersionsProperties.cs @@ -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 diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index ed18c4d0..5aa2f05c 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -887,7 +887,7 @@ namespace Volian.Print.Library if (svgText.Font.Underline && svgText.Text.EndsWith(" ")) svgText.Text = svgText.Text.Substring(0, svgText.Text.Length - 1) + "\xA0";// replace last space with a hardspace return svgText; } - private List _MissingTokens = new List(); + private static List _MissingTokens = new List(); protected override string ReplacePageListToken(Match match) { switch (match.Value)