private void AddButton_Click() { if (SelectedAllergenCombo == null) { return; } _patientController.AddAllergen(_patient, SelectedAllergenCombo); UpdateTable(); }
private void Add_Allergy_Click(object sender, RoutedEventArgs e) { _patientController.AddAllergen(selected, (Ingredient)AllergiesComboBox.SelectedItem); WriteAllergies(selected); }