public static UserSettings getInstance() { if (_instance == null) { _instance = new UserSettings(); if (_instance.NeedUpgrade) { _instance.Upgrade(); _instance.NeedUpgrade = false; _instance.Save(); } } return _instance; }