34 lines
911 B
C#
34 lines
911 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace mpvInputEdit
|
|
{
|
|
[Serializable]
|
|
public class InputItem : INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
public string Menu { get; set; } = "";
|
|
public string Command { get; set; } = "";
|
|
|
|
public InputItem() { }
|
|
|
|
public InputItem(SerializationInfo info, StreamingContext context) {}
|
|
|
|
private void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
|
|
private string _Input = "";
|
|
|
|
public string Input {
|
|
get => _Input;
|
|
set {
|
|
_Input = value;
|
|
NotifyPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
} |