replace v6 with experimental v7 code

This commit is contained in:
stax76
2023-10-24 11:17:45 +02:00
parent fb27bb8727
commit 5706d7b66d
212 changed files with 15014 additions and 12173 deletions

44
src/MpvNet/Binding.cs Normal file
View File

@@ -0,0 +1,44 @@

using CommunityToolkit.Mvvm.ComponentModel;
namespace MpvNet;
public class Binding : ObservableObject
{
public string Path { get; set; }
public string Command { get; set; }
public string Comment { get; set; }
public bool IsMenu { get; set; }
public Binding()
{
Path = ""; Command = ""; Comment = "";
}
public Binding(string folder = "",
string name = "",
string command = "",
string input = "",
string comment = "")
{
if (folder != "" && name != "")
Path = folder + " > " + name;
else if (name != "")
Path = name;
else
Path = "";
Command = command;
Input = input;
Comment = comment == "" ? Path : comment;
}
string _input = "";
public string Input
{
get => _input;
set => SetProperty(ref _input, value);
}
}