HamBook – Rev 32

Subversion Repositories:
Rev:
using Configuration.Annotations;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace Configuration
{
    public class Navigation : INotifyPropertyChanged
    {
        private int _frequencyStep = 100;
        private bool _mouseScrollSound = true;

        public int FrequencyStep
        {
            get => _frequencyStep;
            set
            {
                if (value == _frequencyStep)
                {
                    return;
                }

                _frequencyStep = value;
                OnPropertyChanged();
            }
        }

        public bool MouseScrollSound
        {
            get => _mouseScrollSound;
            set
            {
                if (value == _mouseScrollSound)
                {
                    return;
                }

                _mouseScrollSound = value;
                OnPropertyChanged();
            }
        }

        public Navigation()
        {

        }

        public event PropertyChangedEventHandler PropertyChanged;

        [NotifyPropertyChangedInvocator]
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}