2024-11-13 14:50:04 +00:00
|
|
|
|
namespace Common.UI.ViewModels
|
|
|
|
|
|
{
|
|
|
|
|
|
using Common.Hardware.SIRT;
|
|
|
|
|
|
using Common.UI.Infrastructure;
|
|
|
|
|
|
|
2025-04-09 13:19:25 +00:00
|
|
|
|
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;
|
2025-04-09 13:19:25 +00:00
|
|
|
|
set => this.SetValue(vm => vm.portName = value);
|
2024-11-13 14:50:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string hexId;
|
|
|
|
|
|
public string HexId
|
|
|
|
|
|
{
|
|
|
|
|
|
get => this.hexId;
|
2025-04-09 13:19:25 +00:00
|
|
|
|
set => this.SetValue(vm => vm.hexId = value);
|
2024-11-13 14:50:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string frequency;
|
|
|
|
|
|
public string Frequency
|
|
|
|
|
|
{
|
|
|
|
|
|
get => this.frequency;
|
2025-04-09 13:19:25 +00:00
|
|
|
|
set => this.SetValue(vm => vm.frequency = value);
|
2024-11-13 14:50:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|