laatzen/Common/Ui/Common.UI/ViewModels/SIRTConnectionVM.cs

41 lines
1008 B
C#
Raw Normal View History

2024-11-13 14:50:04 +00:00
namespace Common.UI.ViewModels
{
using Common.Hardware.SIRT;
using Common.UI.Infrastructure;
public class SIRTConnectionVM : VM<SIRTConnectionVM>
2024-11-13 14:50:04 +00:00
{
2025-02-20 14:27:22 +00:00
private static int count;
2024-11-27 09:54:01 +00:00
private readonly SIRTBroadcaster connection;
2024-11-13 14:50:04 +00:00
2025-03-26 11:53:29 +00:00
public SIRTConnectionVM(string portName, string hexId, string frequency)
2024-11-13 14:50:04 +00:00
{
2025-03-26 11:53:29 +00:00
this.PortName = portName;
this.HexId = hexId;
this.Frequency = frequency;
2024-11-13 14:50:04 +00:00
}
private string portName;
public string PortName
{
get => this.portName;
set => this.SetValue(vm => vm.portName = value);
2024-11-13 14:50:04 +00:00
}
private string hexId;
public string HexId
{
get => this.hexId;
set => this.SetValue(vm => vm.hexId = value);
2024-11-13 14:50:04 +00:00
}
private string frequency;
public string Frequency
{
get => this.frequency;
set => this.SetValue(vm => vm.frequency = value);
2024-11-13 14:50:04 +00:00
}
}
}