// 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) { _soundManager = new SoundManager(); _vibrateManager = new VibrateManager(); if (Settings.Sound) { _soundManager.Unmute(); } if (Settings.Vibrate) { _vibrateManager.IsVibrate = true; } }
// 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.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-CN"); //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN"); _soundManager = new SoundManager(); _vibrateManager = new VibrateManager(); if (Settings.Sound) { _soundManager.Unmute(); } if (Settings.Vibrate) { _vibrateManager.IsVibrate = true; } }