コード例 #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
ファイル: App.xaml.cs プロジェクト: zoujiaqing/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
                    InitExtensions(machine.GetCore(), machine.GetRuntime());
                    machine.Run();
                }
            };

            RootFrame.BackKeyPress += new EventHandler <System.ComponentModel.CancelEventArgs>(BackKeyPressHandler);
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: jpsmaia/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
                    InitExtensions(machine.GetCore(), machine.GetRuntime());
                    machine.Run();
                }
            };

            RootFrame.BackKeyPress += new EventHandler<System.ComponentModel.CancelEventArgs>(BackKeyPressHandler);
        }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: N00bKefka/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();
         }
     };
 }