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