using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace QuikDawEditor.EditingClasses; public class RecordInput : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged([CallerMemberName] string propertyName = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } public string RecordInputName { get; set; } public string RecordDeviceName { get; set; } private bool _IsActiveInput = false; public bool IsActiveInput { get { return _IsActiveInput; } set { _IsActiveInput = value; NotifyPropertyChanged(nameof(ActiveImageSource)); } } public string ActiveImageSource { get { return IsActiveInput ? "/EDITING/images/RecInputOn.png" : "/EDITING/images/RecInputOff.png"; } } }