using System.ComponentModel; using System.Runtime.CompilerServices; using Configuration.Annotations; namespace Configuration { public class Visualizations : INotifyPropertyChanged { private Spectrogram _spectrogram = new Spectrogram(); public Spectrogram Spectrogram { get => _spectrogram; set { if (value == _spectrogram) return; _spectrogram = value; OnPropertyChanged(); } } public event PropertyChangedEventHandler PropertyChanged; [NotifyPropertyChangedInvocator] protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }