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(); } }; }
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); }
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); }