示例#1
0
文件: App.xaml.cs 项目: ghuman/MoSync
        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
                    machine.Run();
                }
            };
        }
示例#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.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);
        }
示例#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);
        }
示例#4
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
             machine.Run();
         }
     };
 }