This commit is contained in:
Frank Skare
2019-03-30 05:28:38 +01:00
parent 4116aeb65a
commit 08089b0fc7
51 changed files with 1328 additions and 248 deletions

30
mpvInputEdit/misc.cs Normal file
View File

@@ -0,0 +1,30 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace mpvInputEdit
{
public class InputItem : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public string Menu { get; set; } = "";
public string Command { get; set; } = "";
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();
}
}
}
}