This commit is contained in:
shinichi
2020-10-29 17:01:14 +01:00
parent da9d3184a1
commit 6d599cfcd2
6 changed files with 82 additions and 26 deletions

View File

@@ -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)