wip gtg
This commit is contained in:
@@ -41,6 +41,8 @@ namespace DoctorApp.ViewModels
|
||||
|
||||
public ICommand SetResistance { get; set; }
|
||||
|
||||
public ICommand SaveHistoricData { get; set; }
|
||||
|
||||
public MainWindowViewModel MainWindowViewModel { get; set; }
|
||||
private Client client;
|
||||
|
||||
@@ -81,13 +83,18 @@ namespace DoctorApp.ViewModels
|
||||
PatientInfo.Resistance = float.Parse(((TextBox)parameter).Text);
|
||||
});
|
||||
|
||||
this.SaveHistoricData = new RelayCommand<object>((parameter) =>
|
||||
{
|
||||
this.client.sendMessage(DataParser.GetGetFileMessage(PatientInfo.Username, DateTime.Now));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public void BPMData(byte [] bytes)
|
||||
public void BPMData(byte[] bytes)
|
||||
{
|
||||
//TODO
|
||||
//Parsen van de data you fuck
|
||||
if(bytes[0] == 0x00)
|
||||
if (bytes[0] == 0x00)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -95,13 +102,13 @@ namespace DoctorApp.ViewModels
|
||||
{
|
||||
PatientInfo.BPM = bytes[1];
|
||||
if (MySelectedItem == "BPM")
|
||||
{
|
||||
{
|
||||
Chart.NewValue(PatientInfo.BPM);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void BikeData(byte[] bytes)
|
||||
|
||||
Reference in New Issue
Block a user