aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices
diff options
context:
space:
mode:
authorj-p <jp.bruyere@live.be>2016-08-15 20:55:55 +0200
committerGitHub <noreply@github.com>2016-08-15 20:55:55 +0200
commitea5ba40d536aa80b56db118c3e8e077790c24359 (patch)
tree194329bce587f3f7035f9d4d6258728ac45f3d2b /src/CompilerServices
parented815a31113235890cf6c902c754fb3dc7536708 (diff)
parent6c5120d8108af9ed53e7205d221cf96a281a28a4 (diff)
Merge pull request #19 from jpbruyere/TemplatesPathes
Default Templates searched among resources finishing with .template Textbox and label debug Keyboard repeat Double click Wrapper
Diffstat (limited to 'src/CompilerServices')
-rw-r--r--src/CompilerServices/CompilerServices.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index d06cd29b..79d3745d 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -13,8 +13,14 @@ namespace Crow
public static class CompilerServices
{
static MethodInfo miAddBinding = typeof(GraphicObject).GetMethod ("BindMember");
+ static FieldInfo miSetCurIface = typeof(GraphicObject).
+ GetField ("CurrentInterface", BindingFlags.NonPublic | BindingFlags.Instance);
-
+ public static void emitSetCurInterface(ILGenerator il){
+ il.Emit (OpCodes.Ldloc_0);
+ il.Emit (OpCodes.Ldarg_1);
+ il.Emit (OpCodes.Stfld, miSetCurIface);
+ }
public static void emitBindingCreation(ILGenerator il, string memberName, string expression){
il.Emit (OpCodes.Ldloc_0);
il.Emit (OpCodes.Ldstr, memberName);