private void CreatePatientResults() { List <string> vertebrate = new List <string>(); for (int i = 0; i < 7; i++) { vertebrate.Add(String.Format("C{0}", i + 1)); } for (int i = 0; i < 12; i++) { vertebrate.Add(String.Format("T{0}", i + 1)); } for (int i = 0; i < 5; i++) { vertebrate.Add(String.Format("L{0}", i + 1)); } for (int i = 0; i < 5; i++) { vertebrate.Add(String.Format("S{0}", i + 1)); } for (int i = 0; i < vertebrate.Count; i++) { LeftNCVTestResults.Add(new NCVTestResults { Name = vertebrate[i], NcvValue = "0" }); RightNCVTestResults.Add(new NCVTestResults { Name = vertebrate[i], NcvValue = "0" }); } }
private void PerformNCVDemo(object parameter) { var result = MessageBox.Show("Confirm NCV test action?", "Confirm Action", MessageBoxButton.OKCancel, MessageBoxImage.Warning); if (result != MessageBoxResult.Cancel) { PressureSensorArduinoControl = new PressureSensorArduinoControl(); PressureSensorArduinoControl.RunNcvLedSequence(0); Thread.Sleep(500); PressureSensorArduinoControl = new PressureSensorArduinoControl(); PressureSensorArduinoControl.RunNcvLedSequence(1); EnableUiParameters.LeftNCVTestResults = "32"; EnableUiParameters.RightNCVTestResults = "63"; LeftNCVTestResults.First(o => o.Name == "T5").NcvValue = EnableUiParameters.LeftNCVTestResults; RightNCVTestResults.First(o => o.Name == "T5").NcvValue = EnableUiParameters.RightNCVTestResults; } }