Esempio n. 1
0
 /// <summary>
 /// Restore the application settings.
 /// </summary>
 private void RestoreSettings()
 {
     _appSettings = AppSettings.GetInstance();
     _appSettings.LoadSettings();
     _coordinate = _appSettings.LastKnownLocation;
     MyMap.CartographicMode = _appSettings.MapMode;
 }
Esempio n. 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;
        }