aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-16 15:23:34 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-16 15:23:34 +0200
commit8c7cd405658cbe7e4d64be189549b8125300964f (patch)
tree409ce325828c665bd0b285a09d40a5a924d73419 /src/Interface.cs
parentea5ba40d536aa80b56db118c3e8e077790c24359 (diff)
Correct bug 'Instanciing from code instead of IML'
set currentInterface to default one if null modifié : Crow.OpenTK.nuspec modifié : src/CompilerServices/CompilerServices.cs modifié : src/GraphicObjects/Container.cs modifié : src/GraphicObjects/GraphicObject.cs modifié : src/GraphicObjects/PrivateContainer.cs modifié : src/GraphicObjects/TemplatedControl.cs modifié : src/Interface.cs
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index bc0d1f98..0d97685e 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -56,6 +56,7 @@ namespace Crow
FontRenderingOptions.SubpixelOrder = SubpixelOrder.Rgb;
}
public Interface(){
+ CurrentInterface = this;
CultureInfo.DefaultThreadCurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
}
#endregion
@@ -86,7 +87,7 @@ namespace Crow
public static FontOptions FontRenderingOptions;
#endregion
- internal bool XmlLoading = true;
+ internal static Interface CurrentInterface;
public Dictionary<string,object> Ressources = new Dictionary<string, object>();
public Queue<LayoutingQueueItem> LayoutingQueue = new Queue<LayoutingQueueItem> ();