public void OpenExerciseWindow(Patient _currentPatient, Training _currentTraining) { using (ExerciseView _exerciseView = new ExerciseView(_currentPatient, _currentTraining)) { _exerciseView.MainWindow = this; _exerciseView.GoBackToTreatmentScreen += OpenTreatmentWindow; this.Content = _exerciseView; } }
public void OpenExerciseWindow(Patient _currentPatient, Training _currentTraining) { using (ExerciseView _exerciseView = new ExerciseView(_currentPatient, _currentTraining)) { _exerciseView.MainWindow = this; _exerciseView.GoBackToTreatmentScreen += OpenTreatmentWindow; this.Content = _exerciseView; } }