private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            this.native = new PhoneGap.NativeExecution(ref wb);

            // Load all content files into IsolatedStorage in a separate thread to avoid issues with it taking longer that the system will allow for start up
            var isoLoader = new BackgroundWorker
            {
                WorkerReportsProgress      = false,
                WorkerSupportsCancellation = false
            };

            isoLoader.DoWork             += isoLoader_DoWork;
            isoLoader.RunWorkerCompleted += this.isoLoader_RunWorkerCompleted;
            isoLoader.RunWorkerAsync();
        }
Example #2
0
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            this.native = new PhoneGap.NativeExecution(ref wb);

            // Load all content files into IsolatedStorage in a separate thread to avoid issues with it taking longer that the system will allow for startup
            var isoLoader = new BackgroundWorker
            {
                WorkerReportsProgress = false,
                WorkerSupportsCancellation = false
            };
            isoLoader.DoWork += isoLoader_DoWork;
            isoLoader.RunWorkerCompleted += this.isoLoader_RunWorkerCompleted;
            isoLoader.RunWorkerAsync();
        }