HamBook – Rev 54

Subversion Repositories:
Rev:
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Configuration.Annotations;

namespace Configuration
{
    public class SerialPortTimeout : INotifyPropertyChanged
    {
        private int _read = 100;
        private int _write = 100;


        public int Read
        {
            get => _read;
            set
            {
                if (value == _read) return;

                _read = value;
                OnPropertyChanged();
            }
        }

        public int Write
        {
            get => _write;
            set
            {
                if (value == _write) return;

                _write = value;
                OnPropertyChanged();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

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

Generated by GNU Enscript 1.6.5.90.