Added string value to register base for viewmodel support

- counted up version number
This commit is contained in:
Felix Weiß
2022-06-22 10:13:15 +02:00
parent 5cc222abcc
commit 8f9e66d5d3
3 changed files with 33 additions and 1 deletions

View File

@@ -30,6 +30,12 @@ namespace Examples {
//reading a value from the register collection
Console.WriteLine($"BitValue is: {registers.BitValue}");
interf.GetRegister(nameof(registers.TestInt16)).PropertyChanged += (s, e) => {
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine(interf.GetRegister(nameof(registers.TestInt16)).StringValue);
Console.ResetColor();
};
//writing a value to the registers
Task.Factory.StartNew(async () => {