using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace QuikDawEditor.VST; public class VstProgram : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged([CallerMemberName] String propertyName = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } public string ProgramName { get; set; } public string DisplayName { get { return ProgramName; } } public string DetailValue { get { return "__"; } } private bool _IsSelected = false; public bool IsSelected { get { return _IsSelected; } set { _IsSelected = value; NotifyPropertyChanged(nameof(selBmSource)); } } public string selBmSource { get { return IsSelected ? "/EDITING/images/check.png" : null; } } }