示例#1
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)
        {
            _soundManager   = new SoundManager();
            _vibrateManager = new VibrateManager();

            if (Settings.Sound)
            {
                _soundManager.Unmute();
            }

            if (Settings.Vibrate)
            {
                _vibrateManager.IsVibrate = true;
            }
        }
示例#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)
        {
            //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;
            }
        }