public AddObservationViewModel(PatientObsViewModel viewModel, int patientId) { _patientObsViewModel = viewModel; _patientId = patientId; _observation = new Observation(); _ioService = new IOService(); _selectedPaths = new List<string>(); Error = ""; // Commands AddObservationCommand = new RelayCommand(param => AddObservation(), param => true); OpenCommand = new RelayCommand(param => OpenFileDialog(), param => true); }
private void ResetFields() { _selectedPaths.Clear(); Weight = 0; BloodPressure = 0; Comment = null; Prescription = null; _observation = new Observation(); }