示例#1
0
 /// <summary>
 /// Restore the application settings.
 /// </summary>
 private void RestoreSettings()
 {
     _appSettings = AppSettings.GetInstance();
     _appSettings.LoadSettings();
     _coordinate = _appSettings.LastKnownLocation;
     MyMap.CartographicMode = _appSettings.MapMode;
 }
示例#2
0
        /// <summary>
        /// Returns the singleton instance of this class.
        /// </summary>
        /// <returns>A singleton instance of AppUtils class.</returns>
        public static AppSettings GetInstance()
        {
            if (_instance == null)
            {
                _instance = new AppSettings();
            }

            return _instance;
        }