Duplicate Code in CMenu. CFont, CLanguage removed
This commit is contained in:
1 parent
1eef829479
commit
c3b447ccf6
31 files changed
+302
-755
No files matched your search
@@ -8,10 +8,17 @@ namespace Vocaluxe.Menu
|
||||
public class CXMLReader
|
||||
{
|
||||
private XPathNavigator _Navigator;
|
||||
private String _FileName;
|
||||
|
||||
public string FileName
|
||||
{
|
||||
get { return _FileName; }
|
||||
}
|
||||
|
||||
//Private method. Use OpenFile factory method to get an instance
|
||||
private CXMLReader(string uri)
|
||||
{
|
||||
_FileName = uri;
|
||||
XPathDocument xPathDoc = new XPathDocument(uri);
|
||||
_Navigator = xPathDoc.CreateNavigator();
|
||||
}
|
||||
@@ -94,7 +101,6 @@ namespace Vocaluxe.Menu
|
||||
results++;
|
||||
}
|
||||
|
||||
|
||||
if ((results == 0) || (results > 1))
|
||||
{
|
||||
Value = DefaultValue;
|
||||
|
||||
Reference in new issue
Block a user