private void DodajLek(object sender, RoutedEventArgs e) { Medicine newMedicine = GenerateMedicineObjectFromCollectedData(); _medicineController.AddMedicine(newMedicine); MessageBox.Show("Lek poslat lekaru na validaciju!", "Čekanje na validaciju", MessageBoxButton.OK); _parent.UpdateTable(); this.Close(); }
private void UpdateMedicine(object sender, RoutedEventArgs e) { Medicine updatedMed = GenerateMedicineObjectFromCollectedData(); //MedicineFileRepository.Update(_medForUpdate.MedicineId, updatedMed); _medicineController.UpdateMedicine(updatedMed); MessageBox.Show("Lek poslat lekaru na validaciju!", "Čekanje na validaciju", MessageBoxButton.OK); _parent.UpdateTable(); this.Close(); }