示例#1
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private async void Application_Launching(object sender, LaunchingEventArgs e)
        {
            ThemeManager.ToDarkTheme();

            await ReviewNotification.InitializeAsync();

            if (NetworkInterface.GetIsNetworkAvailable() && NetworkInterface.NetworkInterfaceType == NetworkInterfaceType.Wireless80211)
            {
                try
                {
                    var upd = await CheckIsThereUpdate();
                    if (upd)
                    {
                        var msg = new MessagePrompt { Title = AppResources.UpdateTitle, Message = AppResources.UpdateMessage, IsCancelVisible = true };
                        msg.Completed += msg_Completed;
                        msg.Show();

                    }
                }
                catch (Exception)
                {
                }

            }           
        }
示例#2
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (!App.ViewModel.IsDataLoaded)
     {
         App.ViewModel.LoadData();
     }
 }
示例#3
0
 // 应用程序启动(例如,从“开始”菜单启动)时执行的代码
 // 此代码在重新激活应用程序时不执行
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     // 加载背景图片
     using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
     {
         BitmapImage defaultBackground = new BitmapImage(new Uri("/Assets/Background.jpg", UriKind.Relative));
         ImageBrush defaultBrush = new ImageBrush();
         defaultBrush.ImageSource = defaultBackground;
         defaultBrush.Opacity = 0.7;
         App.Current.Resources.Add("DefaultBackgroundBrush", defaultBrush);
         BitmapImage background = null;
         if (isf.FileExists("Background"))
         {
             using (IsolatedStorageFileStream file = isf.OpenFile("Background", System.IO.FileMode.Open))
             {
                 background = new BitmapImage();
                 background.SetSource(file);
             }
         }
         else
         {
             background = defaultBackground;
         }
         ImageBrush brush = new ImageBrush();
         brush.ImageSource = background;
         brush.Opacity = 0.7;
         App.Current.Resources.Add("BackgroundBrush", brush);
     }
 }
示例#4
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            Utils.Trace("Application Launching");

            TravelReportInfo trf = null;
            using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
            {
                Utils.ListStorageFiles();

                if (isf.FileExists(_fileName))
                {
                    using (IsolatedStorageFileStream fs = isf.OpenFile(_fileName, System.IO.FileMode.Open))
                    {
                        XmlSerializer ser = new XmlSerializer(typeof(TravelReportInfo));
                        object obj = ser.Deserialize(fs);
                        if (null != obj && obj is TravelReportInfo)
                            trf = obj as TravelReportInfo;
                        else
                            trf = new TravelReportInfo();
                    }
                }
                else
                    trf = new TravelReportInfo();
            }

            RootFrame.DataContext = trf;
        }
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            // A unique name for the task. 
            var taskName = "Contoso Cookbook Community Updates";

            // If the task exists
            var oldTask = ScheduledActionService.Find(taskName) as PeriodicTask;
            if (oldTask != null)
            {
                ScheduledActionService.Remove(taskName);
            }

            // Create the Task
            PeriodicTask task = new PeriodicTask(taskName);

            // Description is required
            task.Description = "This looks for data on recipes shared by your community on Contoso Cookbook";

            // Add it to the service to execute
            ScheduledActionService.Add(task);

            // For debugging
            ScheduledActionService.LaunchForTest(taskName,  TimeSpan.FromMilliseconds(5000));


        }
示例#6
0
        // (たとえば、[スタート] メニューから) アプリケーションが起動するときに実行されるコード
        // このコードは、アプリケーションが再アクティブ化済みの場合には実行されません
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            // ".txt"ファイルの数を取得する
            IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
            string[] filenames = isf.GetFileNames();
            int numText = 0;
            foreach (string file in filenames)
            {
                if (".txt" == System.IO.Path.GetExtension(file).ToLower())
                {
                    numText++;
                }
            }
            isf.Dispose();

            // ".txt"ファイルの数が0ならデフォルトファイルを作る
            if (numText == 0)
            {
                // Todo:デフォルトの文字列の内容
                //string content = "8:00,東京\n9:00,神奈川\n21:44,大阪\n23:30,New York\n";
                string content = "6:15,普通 東京\n6:26,快速 高崎\n7:05,普通 籠原\n8:05,普通 東京\n9:02,普通 東京\n10:08,快速 東京\n11:03,普通 東京\n12:01,普通 東京\n13:04,普通 東京\n14:03,普通 東京\n15:01,普通 東京\n16:05,特急 東京\n17:07,普通 東京\n18:04,快速 東京\n19:06,普通 東京\n20:04,快速 籠原\n21:04,普通 東京\n22:04,普通 東京\n23:00,快速 籠原\n";
                SaveFile("example.txt", content);
            }

            // ListBoxの表示をクリアする
            // Todo:各ページのコントロールにはどうやってアクセスする?
            // MainPageクラスがpublicだから、どこかに宣言を書けば使えると思うけど。。
//          listBoxTimeTable.Items.Clear();
        }
示例#7
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //crucial, checks to see if database exists and is proper version (up to date)
     //if it isn't copies the database to the local device.
     IsolatedStorage.CheckIfDBFileUpdateNeeded();
     LicenseService.RefreshLicenseCheckNeeded = true; //clear the license cache so a full check is performed the first time it's needed
 }
示例#8
0
 // 应用程序启动(例如,从“开始”菜单启动)时执行的代码
 // 此代码在重新激活应用程序时不执行
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //获取基本信息
     //Config. InitializeInfo( );
     //检查网络状态
     //Config. CheckNetworkState( );
 }
示例#9
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     var settings = IsolatedStorageSettings.ApplicationSettings;
     var values = settings.Values;
    // bool isTask=false;
     bool isClass = false;
     foreach (var temp in values)
     {
        // if (temp is ObservableCollection<Task>)
       //  isTask = true;
         if (temp is ObservableCollection<Class>)
             isClass = true;
     }
    // if (!isTask)
     //{
        // settings.Add("taskCollection", new ObservableCollection<Task>());
     //}
     if (!isClass)
     {
         settings.Add("classCollection", new ObservableCollection<Class>());
     }
     isTrial = licenseInfo.IsTrial();
     
    
     
 }
示例#10
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            var ser = new so11::MySerializer();
            SO11895998.Foo foo = new SO11895998.Bar {Name = "abc", Value = 4};
            var clone = (SO11895998.Bar) ser.DeepClone(foo);
            Debug.Assert(clone.Name == "abc");
            Debug.Assert(clone.Value == 4);

            clone = (SO11895998.Bar)Serializer.DeepClone(foo);
            Debug.Assert(clone.Name == "abc");
            Debug.Assert(clone.Value == 4);

            Execute();
            //try
            //{
            //    var blob = Resource1.nwind_proto;
            //    using (var ms = new MemoryStream(blob))
            //    {
                    
            //        var db = (DAL.DatabaseCompat)new MySerializer().Deserialize(ms, null, typeof(DAL.DatabaseCompat));
            //        int i = db.Orders.Count;
            //    }
            //}
            //catch (Exception ex)
            //{
            //    Debug.WriteLine(ex.Message);
            //}
        }
示例#11
0
        protected override void OnLaunch(object sender, LaunchingEventArgs e)
        {
            base.OnLaunch(sender, e);

            //Flurry
            FlurryWP8SDK.Api.StartSession("G7N9WKXG4MSTTBQRZQMY");

            ApplicationUsageHelper.Init("0.5");

            ThemeManager.OverrideOptions = ThemeManagerOverrideOptions.None;
            ThemeManager.ToLightTheme();
            ThemeManager.SetAccentColor((System.Windows.Media.Color)Application.Resources["WW.Color.Accent"]);

            notificationPullTimer = new Timer(async (state) =>
                {
                    bool isAuthenticated = IoC.Get<AppSettings>().IsAuthenticated;
                    if (isAuthenticated)
                    {
                        UsersRestService usersRestService = IoC.Get<UsersRestService>();
                        try
                        {
                            NotificationsCountResponse response = await usersRestService.NotificationsCount();
                            IoC.Get<AppSettings>().NotificationsCount = response.Count;
                        }
                        catch (Exception ex)
                        {
                            System.Diagnostics.Debug.WriteLine("Update notification failed. " + ex.Message);
                        }
                    }


                }, null, 0, 10 * 1000);

        }
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            const string TASK_NAME = "GPS_TesteTask";
            var scheduleTask = ScheduledActionService.Find(TASK_NAME);
            if (scheduleTask == null)
            {
                scheduleTask = new PeriodicTask(TASK_NAME)
                {
                    Description = "Teste de GPS em background"
                };

                ScheduledActionService.Add(scheduleTask);
            }
            else if (scheduleTask.IsEnabled)
            {
                ScheduledActionService.Remove(TASK_NAME);
                ScheduledActionService.Add(scheduleTask);
            }

#if DEBUG
            ScheduledActionService.LaunchForTest(TASK_NAME, TimeSpan.FromSeconds(10));
#endif
            // inicializar o GPS uma vez na thread principal
            new GeoCoordinateWatcher(GeoPositionAccuracy.High).Start();
        }
示例#13
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     var r = DependencyResolver.Current;
     r.RegisterService<IJsonSerializer, JsonSerializer>();
     r.RegisterService<IRestClient>(t => new JsonClient(new HttpClient(), t.GetService<IJsonSerializer>()));
     r.RegisterService<BingClient>(t => new BingClient(BingKey.AppKey, t.GetService<IRestClient>()));
 }
		// Code to execute when the application is launching (eg, from Start)
		// This code will not execute when the application is reactivated
		private void Application_Launching(object sender, LaunchingEventArgs e)
		{
			LittleWatson.CheckForPreviousException("Todo.txt Windows Phone 7 error report",
				"*****@*****.**");
			Messenger.Default.Send(new ApplicationReadyMessage());
			Messenger.Default.Send(new ApplicationStartedMessage());
		}
示例#15
0
文件: App.xaml.cs 项目: pronebel/wp8
        // 应用程序启动(例如,从“开始”菜单启动)时执行的代码
        // 此代码在重新激活应用程序时不执行
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            Debug.WriteLine(String.Format("{0}-appLaunching被执行",DateTime.Now.ToLongTimeString()));
            SetMapUri();

            appData = "hello~!";
        }
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         // Avoid screen locks while debugging.
         PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
     }
 }
示例#17
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            if (Settings.settings.Contains("hashpass"))      // Checking if Isolated storage has key notelistiso
            {
                Settings.HashedPassword = (Settings.settings["hashpass"] as string); // Retriving Notes from Isolated storage
            }

        }
示例#18
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     using (var db = new MovieDataContext())
     {
         if (!db.DatabaseExists())
             db.CreateDatabase();
     }
 }
示例#19
0
文件: App.xaml.cs 项目: Galad/Hanno
		// Code to execute when the application is launching (eg, from Start)
		// This code will not execute when the application is reactivated
		private void Application_Launching(object sender, LaunchingEventArgs e)
		{
			_container = new UnityContainer();
			var composer = new Composer(_container,
										new MainModule(),
										new PhoneModule(RootFrame, DispatcherScheduler.Current));
			composer.Register();
		}
示例#20
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            if (IsolatedStorageSettings.ApplicationSettings.Contains("done"))
            { IsolatedStorageSettings.ApplicationSettings["askforreview"] = false; }

            else { IsolatedStorageSettings.ApplicationSettings["askforreview"] = true; }

        }
示例#21
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (TelegramSession.Instance.AuthorizationExists()) {
         ContactManager cm = new ContactManager();
         Task.Run(() => cm.SyncContacts());
         Task.Run(() => new NotificationManager().RegisterPushNotifications());
     }
 }
示例#22
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (puzzleAdapter == null)
     {
         puzzleAdapter = new PuzzleAdapter();
         puzzleAdapter.load(null);
     }
 }
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     var _settingsViewModel = App.Current.Resources["SettingsViewModel"] as SettingsViewModel;
     if (IsolatedStorageSettings.ApplicationSettings.Count == 0)
     {
         _settingsViewModel.UseLocation = true;
         _settingsViewModel.UseLightMode = true;
     }
 }
示例#24
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //isVIP = Helper.isVIP();
    // isTrial = new LicenseInformation().IsTrial();
     voucherHelper = new VoucherHelpr();
     categoryHelper = new CategoryHelper();
     accountHelper = new AccountHelper();
     storeHelper = new StoreHelper();
 }
示例#25
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication();
     if( !store.FileExists("high.txt") )
     {
         IsolatedStorageFileStream file = store.CreateFile("high.txt");
         file.Close();
     }
 }
示例#26
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            BoyacaDataContext contexto = new BoyacaDataContext("isostore:/boyaca.mdb");
            if (!contexto.DatabaseExists())
            {
                contexto.CreateDatabase();
            }

        }
示例#27
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            Host.Settings.EnableFrameRateCounter = false;

            DataBaseViewModel = new DataBaseViewModel("Data Source=isostore:/WordSteps.sdf");
            SettingsViewModel = new SettingsViewModel();

            DataBaseViewModel.LoadData();
        }
示例#28
0
 // 应用程序启动(例如,从“开始”菜单启动)时执行的代码
 // 此代码在重新激活应用程序时不执行
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (!IsolatedStorageSettings.ApplicationSettings.Contains("City"))
     {
         List<CityWeatherInfo> citys = new List<CityWeatherInfo>();
         IsolatedStorageSettings.ApplicationSettings["City"] = citys;
         IsolatedStorageSettings.ApplicationSettings.Save();
     }
 }
示例#29
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (IsolatedStorageSettings.ApplicationSettings.Contains("usercreated") && IsolatedStorageSettings.ApplicationSettings.Contains("userName")
         && IsolatedStorageSettings.ApplicationSettings.Contains("password"))
     {
         userCreated = Convert.ToBoolean(IsolatedStorageSettings.ApplicationSettings["usercreated"] as string);
         m.username = IsolatedStorageSettings.ApplicationSettings["userName"] as string;
         m.addPass(IsolatedStorageSettings.ApplicationSettings["password"].ToString());
     }
 }
示例#30
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator)
            {
                IsolatedStorageExplorer.Explorer.Start("localhost");
            }

            DispatcherHelper.Initialize();
            LoadModel();
        }
示例#31
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     this.LoadDatabase();
 }
示例#32
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     Thread.CurrentThread.CurrentUICulture = new CultureInfo("pt-BR");
     Thread.CurrentThread.CurrentCulture   = new CultureInfo("pt-BR");
 }
示例#33
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     RootFrame.Navigating += RootFrameOnNavigating;
 }
示例#34
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Application_Launching");
     MXContainer.Navigate(null, MXContainer.Instance.App.NavigateOnLoad);
 }
示例#35
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     StateUtilities.IsLaunching = true;
 }
示例#36
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
 }
示例#37
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     OriginalIdleMode = PhoneApplicationService.Current.UserIdleDetectionMode;
     PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
 }
示例#38
0
 /// <summary>
 /// Occurs when a fresh instance of the application is launching.
 /// </summary>
 protected virtual void OnLaunch(object sender, LaunchingEventArgs e)
 {
 }
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     this.CheckTrialState();
 }
示例#40
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     db = new SQLiteConnection("mibd.db");
     db.CreateTable <Persona>();
 }
示例#41
0
文件: App.xaml.cs 项目: ITSF/WP8Book
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     WasAppDormant = false;
 }
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     _dataContext.Communication.Start();
 }
示例#43
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //    DeviceService = new DevicesService();
 }
示例#44
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     Database.Fill();
 }
示例#45
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     // Call this on launch to initialise the feedback helper
     FeedbackHelper.Default.Launching();
 }
 /// <summary>
 /// Starts audio engine when application is launched.
 /// </summary>
 /// <param name="sender">PhoneApplicationService</param>
 /// <param name="e">Event arguments</param>
 void AppLaunching(object sender, LaunchingEventArgs e)
 {
     m_d3dInterop.StartAudioEngine();
 }
示例#47
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     EnsureSampleAppApplication(RootFrame).ContinueToSampleItemList();
 }
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     DataSource.LoadDataAsync();
 }
示例#49
0
文件: App.xaml.cs 项目: vuchl/DoIt
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     Diagnostics.ProfilingTakeTime("Launching Begin");
     LoadDataManager();
     Diagnostics.ProfilingTakeTime("Launching");
 }
示例#50
0
 void AppLaunching(object sender, LaunchingEventArgs e)
 {
     Debug.WriteLine("INFO: AppLaunching");
 }
示例#51
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     ApplicationUsageHelper.Init("1.0");
 }
示例#52
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //IsolatedStorageExplorer.Explorer.Start("localhost");
     LoadSettings();
 }
示例#53
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     CheckLicence();
 }
示例#54
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     Debug.WriteLine("[Linphone] Launching");
     LinphoneManager.Instance.ConnectBackgroundProcessToInterface();
 }
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            LoadIsTrial();

            TiltEffect.SetIsTiltEnabled(RootFrame, true);
        }
示例#56
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     CommonActivated();
 }
 void OnInitialLaunch(object sender, LaunchingEventArgs e)
 {
 }
示例#58
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     Task.Run(() => TestAudioSystem());
 }
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private async void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //await VoiceCommandService.InstallCommandSetsFromFileAsync(new Uri("ms-appx:///VoiceCommands.xml", UriKind.Absolute));
 }
示例#60
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     FlurryWP7SDK.Api.StartSession("9697X37ZJW956JD76Q3M");
 }