Files
mpv.net/mpvInputEdit/misc.cs
Frank Skare b16bcd0295 -
2019-04-05 15:49:01 +02:00

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();
}
}
}
}