예제 #1
0
        public int RemoveOldMedicament(ChoosenMedicamentModel medicament)
        {
            int previousAmount = medicament.Amount;

            TotalCost -= medicament.TotalPrice;
            ListOfChoosenMedicament.Remove(medicament);
            return(previousAmount);
        }
예제 #2
0
 private void RemoveMedicament(object obj)
 {
     TotalCost -= SelectedMedicamentFromChoosenList.TotalPrice;
     ListOfChoosenMedicament.Remove(SelectedMedicamentFromChoosenList);
     SelectedMedicamentFromChoosenList = null;
 }