public AllCategory() { Preferences preferences = Application.Preferences; categoriesToHide = preferences.GetStringList(Preferences.HideInAllCategory); Application.Preferences.SettingChanged += OnSettingChanged; }
private void OnSettingChanged(Preferences preferences, string settingKey) { if (settingKey.CompareTo (Preferences.HideInAllCategory) != 0) return; categoriesToHide = preferences.GetStringList (Preferences.HideInAllCategory); }
private void OnSettingChanged(Preferences preferences, string settingKey) { if (settingKey.CompareTo(Preferences.HideInAllCategory) != 0) { return; } categoriesToHide = preferences.GetStringList(Preferences.HideInAllCategory); }