Exemplo n.º 1
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     LuaForm.navService = NavigationService;
     LuaForm.activeForm = this;
     if (FirstInit)
     {
         FirstInit = false;
     }
     else if (!mainPage)
     {
         luaId = NavigationContext.QueryString["luaId"];
         String initUI = NavigationContext.QueryString["ui"];
         if (initUI != "")
         {
             LuaViewInflator inflater = new LuaViewInflator(luaContext);
             this.view = inflater.ParseFile(initUI, null);
             Content   = view.GetView();
         }
         else
         {
             LuaEngine.Instance.OnGuiEvent(this, LuaEngine.GuiEvents.GUI_EVENT_CREATE, luaContext);
         }
     }
     LuaEngine.Instance.OnGuiEvent(this, LuaEngine.GuiEvents.GUI_EVENT_RESUME, luaContext);
 }
Exemplo n.º 2
0
 public static LuaContext CreateLuaContext(LuaForm form)
 {
     return(new LuaContext());
 }