diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 03:59:33 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 03:59:33 +0200 |
| commit | 4ca12da2740078a292600736c60c09897263ef95 (patch) | |
| tree | 28d4441c12924165c45725b94d3e0cfe6104ffde /src/Interface.cs | |
| parent | 351960c268b3a648c501d429521352f4fbe47535 (diff) | |
ItemTemplate class derived from IMLStream.
replace xmlLoadingCount by xmlLoading.
modifié : src/GraphicObjects/ListBox.cs
modifié : src/GraphicObjects/TemplatedControl.cs
modifié : src/IMLStream.cs
modifié : src/Interface.cs
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index ca5cb28f..3233cdfe 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -59,11 +59,6 @@ namespace Crow #endregion #region Static and constants - /// <summary> keep ressource path for debug msg </summary> - internal static string CurrentGOMLPath = ""; - //used in templatedControl - internal static int XmlLoaderCount = 0; - public static int TabSize = 4; public static string LineBreak = "\r\n"; //TODO: shold be declared in graphicObject @@ -227,17 +222,14 @@ namespace Crow System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture; Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; - Interface.XmlLoaderCount ++; - CurrentGOMLPath = path; GraphicObject tmp = null; try { using (Stream stream = GetStreamFromPath (path)) { tmp = Load(stream, GetTopContainerOfXMLStream(stream), hostClass); } } catch (Exception ex) { - throw new Exception ("Error loading <" + CurrentGOMLPath + ">:", ex); + throw new Exception ("Error loading <" + path + ">:", ex); } - Interface.XmlLoaderCount --; Thread.CurrentThread.CurrentCulture = savedCulture; |