Ejemplo n.º 1
0
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            //RootFrame.Navigated += delegate(object _sender, NavigationEventArgs _e)
            RootFrame.Loaded += delegate(object _sender, RoutedEventArgs _e)
            {
                if (machine == null)
                {
#if !REBUILD
                    machine = MoSync.Machine.CreateInterpretedMachine("program", "resources");
#else
                    machine = MoSync.Machine.CreateNativeMachine(new CoreNativeProgram(), "resources");
#endif
                    InitExtensions(machine.GetCore(), machine.GetRuntime());
                    machine.Run();
                }
            };
        }
Ejemplo n.º 2
0
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            //RootFrame.Navigated += delegate(object _sender, NavigationEventArgs _e)
            RootFrame.Loaded += delegate(object _sender, RoutedEventArgs _e)
            {
                if (machine == null)
                {
#if REBUILD
                    machine = MoSync.Machine.CreateNativeMachine(new CoreNativeProgram(), "resources");
                    machine.Run();
#elif LIB
                    machine = MoSync.Machine.CreateMachineLib("resources");
                    MoSync.Machine.runMain();
#else
                    machine = MoSync.Machine.CreateInterpretedMachine("program", "resources");
                    machine.Run();
#endif
                    InitExtensions(machine.GetCore(), machine.GetRuntime());
                }
            };

            RootFrame.BackKeyPress += new EventHandler <System.ComponentModel.CancelEventArgs>(BackKeyPressHandler);
        }
Ejemplo n.º 3
0
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            //RootFrame.Navigated += delegate(object _sender, NavigationEventArgs _e)
            RootFrame.Loaded += delegate(object _sender, RoutedEventArgs _e)
            {
                if (machine == null)
                {
            #if !REBUILD
                    machine = MoSync.Machine.CreateInterpretedMachine("program", "resources");

            #else
                    machine = MoSync.Machine.CreateNativeMachine(new CoreNativeProgram(), "resources");
            #endif
                    InitExtensions(machine.GetCore(), machine.GetRuntime());
                    machine.Run();
                }
            };

            RootFrame.BackKeyPress += new EventHandler<System.ComponentModel.CancelEventArgs>(BackKeyPressHandler);
        }