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

41 lines
1008 B
C#

namespace Common.UI.ViewModels
{
using Common.Hardware.SIRT;
using Common.UI.Infrastructure;
public class SIRTConnectionVM : VM<SIRTConnectionVM>
{
private static int count;
private readonly SIRTBroadcaster connection;
public SIRTConnectionVM(string portName, string hexId, string frequency)
{
this.PortName = portName;
this.HexId = hexId;
this.Frequency = frequency;
}
private string portName;
public string PortName
{
get => this.portName;
set => this.SetValue(vm => vm.portName = value);
}
private string hexId;
public string HexId
{
get => this.hexId;
set => this.SetValue(vm => vm.hexId = value);
}
private string frequency;
public string Frequency
{
get => this.frequency;
set => this.SetValue(vm => vm.frequency = value);
}
}
}