36 lines
939 B
C#
36 lines
939 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 _Key = "";
|
|
|
|
public string Key {
|
|
get {
|
|
return _Key;
|
|
}
|
|
set {
|
|
_Key = value;
|
|
NotifyPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
} |