private void OnUserPrefsDatabaseChangedEvent(PreferenceChanged preferenceChanged)
        {
            switch (preferenceChanged)
            {
            case PreferenceChanged.ShowReading:
                OnShowReadingToggle();
                break;

            case PreferenceChanged.ShowPronunication:
                OnShowPronunciationToggle();
                break;

            case PreferenceChanged.ReadMode:
                ChangeReadMode();
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 protected virtual void OnPreferenceChanged(string key)
 => PreferenceChanged?.Invoke(this, new PreferenceChangedEventArgs(key));
Esempio n. 3
0
 protected virtual void OnPreferenceChanged(Preference preference)
 {
     PreferenceChanged?.Invoke(this, new PreferenceChangedEventArgs(preference));
 }
Esempio n. 4
0
 private static void OnPreferenceChanged(object value, [CallerMemberName] string preferenceName = null) => PreferenceChanged?.Invoke(new PreferenceChangedEventArgs(preferenceName, value));