added Base object to XMLReader class

the Base object handling must be changed for the whole VocaluxeLib!
This commit is contained in:
Alexander Eckart committed 2013-02-22 17:11:25 +01:00
1 parent 406e75408b
commit 08658e20e3
3 files changed
+9 -5

No files matched your search

+6 -3
View File
@@ -7,8 +7,9 @@ namespace Vocaluxe.Menu
{
public class CXMLReader
{
public static Basic Base;
private XPathNavigator _Navigator;
public CXMLReader(string uri)
{
XPathDocument xPathDoc = new XPathDocument(uri);
@@ -20,7 +21,7 @@ namespace Vocaluxe.Menu
get { return _Navigator; }
}
public static CXMLReader OpenFile(string sUri)
public CXMLReader OpenFile(string sUri)
{
try
{
@@ -28,7 +29,9 @@ namespace Vocaluxe.Menu
}
catch (Exception)
{
//TODO: How to log from here?
if (Base != null)
Base.Log.LogError("Can't open XML file: " + sUri);
return null;
}
}